Problem with DataDBReader
Problem with DataDBReaderPosted by Gommlich André at April 26. 2006Hello, all SALOME user
I try to write my own component for SALOME version 2.2.8 by using python. The loading of my predefined SPML data model and the input of data goes well. Now i would like to use and manipulate these data in my component by using DataDBReader and DataDBWriter from DATA component.
I'm able to read and write data by the following code
writer.setField_String(e,"Name",["My New Entity"])
# returns My New Entity
# returns MyEntity
# returns ['Name', 'Comment', ...]
But if i try to use the following methods of DataDBReader, i will get errors.
# returns _omnipy.invoke(self,"getEntity",...) error
# returns _omnipy.invoke(self,"getRepresentation_Entity",...) error
# returns _omnipy.invoke(self,"getPotentialValues_Entity",...) error
I looked up the DATA component source code and i think those are likely bugs in those methods.
Now my question. Is it a problem of me or there real bugs in DATA component?
Especially getEntity() is very important for me.
I will be very grateful for any help to fix the problem soon.
P.S. Please sorry my poor English
Powered by Ploneboard
Activate by Site Administrator on Sep 02, 2009 11:02 AM