Ejemplo n.º 1
0
 def __init__(self,
              name,
              backup=False,
              debug=False,
              doMacroExpansion=False):
     ParsedParameterFile.__init__(self,
                                  name,
                                  backup=backup,
                                  debug=debug,
                                  longListOutputThreshold=None,
                                  doMacroExpansion=doMacroExpansion)
Ejemplo n.º 2
0
 def __init__(self,
              name,
              backup=False,
              debug=False,
              doMacroExpansion=False):
     ParsedParameterFile.__init__(self,
                                  name,
                                  backup=backup,
                                  debug=debug,
                                  longListOutputThreshold=None,
                                  doMacroExpansion=doMacroExpansion)
Ejemplo n.º 3
0
 def __init__(self,
              name,
              backup=False,
              className="dictionary",
              objectName=None,
              createZipped=False,
              read = True,  #If True read, if false create empty file
              **kwargs):
     
     ParsedParameterFile.__init__(self,
                                  name,
                                  backup=backup,
                                  dontRead=not read,
                                  createZipped=createZipped,
                                  **kwargs)
     if not read : 
         if objectName==None:
             objectName=os.path.basename(name)
 
         self.content=DictProxy()
         self.header={"version":"2.0",
                      "format":"ascii",
                      "class":className,
                      "object":objectName}