PyFoam.Basics.TemplateFile module¶
-
class
PyFoam.Basics.TemplateFile.EvalPseudoSandboxWithMath(allowExec=False)[source]¶ Bases:
PyFoam.ThirdParty.pyratemp.EvalPseudoSandboxAdd mathematical functions to the valid functons
-
class
PyFoam.Basics.TemplateFile.EvalPseudoSandboxWithMathWithImport[source]¶ Bases:
PyFoam.Basics.TemplateFile.EvalPseudoSandboxWithMathClass that allows the import of packages
-
class
PyFoam.Basics.TemplateFile.PyratempPreprocessor(dovarline=True, doexpr=True, expressionDelimiter='$', assignmentLineStart='$$', allowExec=False, assignmentDebug=None, specials=[])[source]¶ Bases:
objectThis class preprocesses the input that is give to it in such a way that the old format (using $$ at the line beginnings and $ .. $ for expressions) is reworked into something that pyratemp understands
-
class
PyFoam.Basics.TemplateFile.RendererWithFilename(evalfunc, escapefunc, filename=None)[source]¶ Bases:
PyFoam.ThirdParty.pyratemp.RendererUsual renderer but report a filename
-
class
PyFoam.Basics.TemplateFile.TemplateFile(name=None, content=None, encoding='utf-8', expressionDelimiter='|', assignmentLineStart='$$', assignmentDebug=None, specials=[], renderer_class=None, tolerantRender=False, allowExec=False)[source]¶ Bases:
PyFoam.Basics.TemplateFile.TemplateFileOldFormatWorks on template files. Does calculations between $$. Lines that start with $$ contain definitions
-
class
PyFoam.Basics.TemplateFile.TemplateFileOldFormat(name=None, content=None)[source]¶ Bases:
objectWorks on template files. Does calculations between $$. Lines that start with $$ contain definitions
-
class
PyFoam.Basics.TemplateFile.TolerantRenderer(evalfunc, escapefunc, filename=None)[source]¶ Bases:
PyFoam.Basics.TemplateFile.RendererWithFilenameVariant of the renderer that doesn’t choke on problems with evaluations