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

Class CMFModelMason

ModelMason --+
             |
            CMFModelMason


Method Summary
  __init__(self, model, rootPath)
Initializes the ModelMason so that the built files are based on the supplied model.
  build(self)
  templateObjectForFile(self, templateFile)
Overrides ModelMason implementation so that the namespace passed to the Template object contains: self, an Entity, a Model and a Relationship
    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.
  tmpl_namespace(self)
This method returns a dictionary used by templates to search for specific values.

Class Variable Summary
    Inherited from ModelMason
list _marker = []

Method Details

__init__(self, model, rootPath=None)
(Constructor)

Initializes the ModelMason so that the built files are based on the supplied model. Parameter 'rootPath' specifies where the files will be placed ; if not supplied, the Mason will default to the Zope's 'Products' folder.
Overrides:
Modeling.ModelMasons.ModelMason.ModelMason.__init__

build(self)

Overrides:
Modeling.ModelMasons.ModelMason.ModelMason.build

templateObjectForFile(self, templateFile)

Overrides ModelMason implementation so that the namespace passed to the Template object contains: self, an Entity, a Model and a Relationship

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