[Modeling-users] inconsistencies with PyModels
Status: Abandoned
Brought to you by:
sbigaret
|
From: Lorenzo G. S. <lg...@si...> - 2004-08-11 16:35:20
|
Hi all,
I'm finding some problems when creating a PyModel:
model.addEntity(my_entity) does nothing but
model.entities.append(my_entitye) works
This is not really important and I guess it's easy to fix. The next
problem is more important:
model.build
defaultModelSet().addModel(model)
fails with this exception:
File
"/home/lgs/proyectos/gruppy/middletier/DOF/m/DomainObjectFramework.py",
line 40, in __init__
defaultModelSet().addModel(model)
File "/opt//lib/python2.3/site-packages/Modeling/ModelSet.py", line
138, in addModel
if aModel.name() in self.modelsNames():
TypeError: 'str' object is not callable
defaultModelSet().addModel(model.component)
works without a warning but I'm not sure if this is the preferred way of
adding a model to the modelset.
Cheers
Lorenzo Gil Sanchez
|