Hi list, I am new to sqlalchemy and have never used zope. My back ground is with Django and I have just recently became enlighten with pyramid and plyons. My question is I don't understand how sqlalchemy is connect to the zope transaction system. I normally don't care about how they interact, I just add my objects to the session and they objects are saved to the database. My issues comes about when I add object A to my session and need to save object B to the database. object B has a property that needs to know about object's A database id. Is there any way I can make sure that object A is written to the database and has an id before I write object B? I tried session.flush()... is that the best way? Can I create object B in object A's __ini__ function or is that bad form?
Sorry... maybe that question is not clear.... and maybe I should be asking on the sqlalchemy list but any advice would be greatly appreciated Thanks Ivan Willig -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
