Package Modeling :: Package ModelMasons :: Module PyModelMason :: Class PyModelMason
[show private | hide private]
[frames | no frames]

Class PyModelMason

ModelMason --+
             |
            PyModelMason


See the module's documentation for details
Method Summary
  __init__(self, model, pymodel_path, rootPath, verbose_mode, generation_scheme, fake_mode)
Initializes the ModelMason so that the built files are based on the supplied model.
  build(self)
  tmpl_namespace(self)
Namespace for templates: contains keys 'myself', 'model' and 'entities' NB: 'entities' is set during build(), when generating modules.
    Inherited from ModelMason
  build_package(self)
Creates all the necessary directories for the package, which can be something like A.B.C.MyPackage.
  copyFile(self, templateFilename, destinationFilename, overwrite)
Copy the template file to the destination file, unchanged.
  createEmptyFile(self, filename, overwrite)
Create the empty file 'filename' ; the filename is a relative path (relative to 'self.productBaseDirectory()')
  createFileFromTemplate(self, template, destFile, namespace, overwrite)
Parameters:
  entitiesSet(self)
Returns a list of list of entities, where Entities in the same list share the same 'moduleName'
  fix_tmpl_namespace(self, namespace)
Internally used to make any values in the namespace callable --if a value is an instance or a python object, it is by a lambda function returning the value.
  fullPathForBrick(self, aBrick)
Returns the full path for a given brick's filename.
  fullPathForGeneratedFile(self, filename)
Returns the full path for a given generated filename.
  log(self, msg)
Logs the msg to stderr if self.verbose_mode is true
  templateObjectForTemplate(self, template, namespace)
Initializes a Template object from the supplied templateFile.

Method Details

__init__(self, model, pymodel_path, rootPath=None, verbose_mode=0, generation_scheme='compact', fake_mode=0)
(Constructor)

Initializes the ModelMason so that the built files are based on the supplied model.
Parameters:
model - see ModelMason.__init__()
pymodel_path -
rootPath - see ModelMason.__init__()
generation_scheme - either string "compact" or "base"
fake_mode - see ModelMason.__init__()
Overrides:
Modeling.ModelMasons.ModelMason.ModelMason.__init__

build(self)

Overrides:
Modeling.ModelMasons.ModelMason.ModelMason.build

tmpl_namespace(self)

Namespace for templates: contains keys 'myself', 'model' and 'entities' NB: 'entities' is set during build(), when generating modules.
Overrides:
Modeling.ModelMasons.ModelMason.ModelMason.tmpl_namespace

Generated by Epydoc 2.1 on Sat Mar 4 13:36:23 2006 http://epydoc.sf.net