Package PyFoam :: Package Applications :: Module CommonTemplateFormat
[hide private]
[frames] | no frames]

Source Code for Module PyFoam.Applications.CommonTemplateFormat

 1  """ 
 2  Class that implements the common functionality for the format of templates 
 3  """ 
 4  from optparse import OptionGroup 
 5   
6 -class CommonTemplateFormat(object):
7 """ The class that defines options for template formats 8 """ 9
10 - def addOptions(self):
11 tformat=OptionGroup(self.parser, 12 "Format", 13 "Specifying details about the format of the pyratemp-templates (new format)") 14 self.parser.add_option_group(tformat) 15 tformat.add_option("--expression-delimiter", 16 action="store", 17 default="|-", 18 dest="expressionDelimiter", 19 help="String that delimits an expression. At the end of the expression the reverse string is being used. Default: %default") 20 tformat.add_option("--assignment-line-start", 21 action="store", 22 default="$$", 23 dest="assignmentLineStart", 24 help="String at the start of a line that signifies that this is an assignment. Default: %default")
25