Hi Masetto,

On 26/03/2010 16:01, masetto wrote:
....
Maybe it's a stupid problem but i can't figure it out at the moment :/

Code:
...
for definitions in ovalXML._childrenMap['definitions']:
        for definition in definitions.getchildren():
            defInst = ORM_Classes.DefinitionClass(definition)
session.add(defInst) # I think this line should be here, you have it further down
            ...
            if subElem1.tag == mainNS + "platform":
                    platf = ORM_Classes.PlatformClass()
                    platf.setPlatform(str(subElem1))

#                    defInst.PlatformRel = [platf]    # change this to
                       platf.definitions = defInst

Werner

--
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalch...@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to