Home | Trees | Index | Help |
|
---|
Package Modeling :: Package ModelMasons :: Module PyModelMason |
|
PyModelMason generates the python package, modules and classes described in a model, ready to be used w/ the modeling framework.
Its templates are located in sub-package 'Python_bricks'. The generated code is compatible with python v2.1 and v2.2.
Given a model, it can generate the appropriate python code in two different ways: the flat, or 'compact' scheme, and the 'base' scheme.
The former one generates all files within a single directory (namely: in package model.packageName()), none of which (except the models) can be overwritten when the code is regenerated.
The so-called 'base' scheme adds a subpackage 'MDL' within the generated package. All files within MDL/ are ALWAYS overwritten when the python code is regenerated, while others (in the root package) are never overwritten if they exist. This is probably the one you want to use if your model changes often.
CVS information
$Id: PyModelMason.py 974 2006-02-26 14:06:07Z sbigaret $
Classes | |
---|---|
PyModelMason |
See the module's documentation for details |
Exceptions | |
---|---|
InvalidModelError |
Raised by checkModelIsValid() |
Function Summary | |
---|---|
Checks that the supplied model is valid for a given python-code generation scheme: |
Function Details |
---|
checkModelIsValid(model, generation_scheme)Checks that the supplied model is valid for a given python-code generation scheme:
Parameters:
Returns: None Raises InvalidModelError if the model is invalid.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sat Mar 4 13:36:27 2006 | http://epydoc.sf.net |