Update of /cvsroot/modeling/ProjectModeling/Modeling
In directory sc8-pr-cvs1:/tmp/cvs-serv28974
Modified Files:
Model.py
Log Message:
loadModel() now automatically build() the pymodel
Index: Model.py
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/Model.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** Model.py 24 Jul 2003 11:10:53 -0000 1.10
--- Model.py 31 Jul 2003 17:11:12 -0000 1.11
***************
*** 166,169 ****
--- 166,170 ----
import PyModel
if isinstance(model, PyModel.Model):
+ model.build()
model=model.component
updateModelWithCFG(model)
***************
*** 174,177 ****
--- 175,179 ----
if callable(pymodel):
pymodel=pymodel()
+ pymodel.build()
updateModelWithCFG(pymodel.component)
return pymodel.component
|