Brett wrote:
>
>
> Is it possible to move a pending object that is a child in a relation to
> a new sessions without flushing the objects original session?

yes but you'll have to either detach it from its parent first, or disable
cascade rules using cascade="none".  it would look like:

del parent.children[0]  # assuming this is how "child" is related
session.expunge(child)
newsession.save(child)

I haven't tried your example program, though.



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

Reply via email to