Update of /cvsroot/modeling/ProjectModeling/Modeling
In directory sc8-pr-cvs1:/tmp/cvs-serv9652
Modified Files:
Model.py
Log Message:
loadModel() builds a pymodel only if it has been previously built
Index: Model.py
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/Model.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** Model.py 31 Jul 2003 17:11:12 -0000 1.11
--- Model.py 3 Aug 2003 12:56:10 -0000 1.12
***************
*** 130,133 ****
--- 130,134 ----
2. 'pymodel' (id.): if found, we assume this is an instance of
Modeling.PyModel.Model and we return its 'component' attribute
+ If the PyModel has not been built yet, it is build() here.
3. 'model_src' (id.): if found, we assume this is a string and return
***************
*** 166,170 ****
import PyModel
if isinstance(model, PyModel.Model):
! model.build()
model=model.component
updateModelWithCFG(model)
--- 167,172 ----
import PyModel
if isinstance(model, PyModel.Model):
! if not model.is_built:
! model.build()
model=model.component
updateModelWithCFG(model)
|