Home | Trees | Index | Help |
|
---|
Package Modeling :: Package ModelMasons :: Module PyModelMason :: Class PyModelMason |
|
ModelMason
--+
|
PyModelMason
Method Summary | |
---|---|
Initializes the ModelMason so that the built files are based on the supplied model. | |
| |
Namespace for templates: contains keys 'myself', 'model' and 'entities' NB: 'entities' is set during build(), when generating modules. | |
Inherited from ModelMason | |
Creates all the necessary directories for the package, which can be something like A.B.C.MyPackage. | |
Copy the template file to the destination file, unchanged. | |
Create the empty file 'filename' ; the filename is a relative path (relative to 'self.productBaseDirectory()') | |
Parameters: | |
Returns a list of list of entities, where Entities in the same list share the same 'moduleName' | |
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. | |
Returns the full path for a given brick's filename. | |
Returns the full path for a given generated filename. | |
Logs the msg to stderr if self.verbose_mode is true | |
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)
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. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sat Mar 4 13:36:23 2006 | http://epydoc.sf.net |