Re: [Modeling-users] ModelMasons refactored
Status: Abandoned
Brought to you by:
sbigaret
|
From: Sebastien B. <sbi...@us...> - 2003-04-20 16:24:40
|
> Next step on this will be to integrate the 'Base' generation-scheme,
> as discussed earlier on the mailing-list (with a patch proposed by
> soif).
Ok, done. If you want to test, please update
scripts/mdl_generate_python_code.py
ModelMasons/ (whole directory)
The old generation scheme is still the default (we can change that for 0.=
9),
or with option -C (C for compact)
The new one is accessible w/ the -B option (B for base)
It generates <className>Base.py as well as <className>.py
As in the 'compact' scheme, files model_<modelName>.py and .xml are
overwritten. Additionally, '...Base' module are also overwritten.
(TBD Note: this should be documented within the script's --help)
Inheritance:
------------
The following inheritance hierarchy is generated for
StoreEmployees.Employee/Executive:
EmployeeBase <--- Employee <---- ExecutiveBase <---- Executive
=20=20
I applied the old and new schemes to StoreEmployees and AuthorBooks, with
success (tests OK). However, here again I'll appreciate if somebody
interested in the topic could test and double-check with his own project
(Brad, Soif?)
Regards,
-- S=E9bastien.
|