fwiw. using private methods on the session, calling session._attach(
instance ) has the nesc. effects of reattaching to the session with the
object marked in the session as dirty.

[EMAIL PROTECTED] wrote:
> i'd like to detach an object from a session, modify it, and reattach it
> to the session, with detection of the object's current state
> (modified), and added to the session's dirty set. i thought calling
> session.save_or_update, would do this but it resets the modification
> status of the object (_update_impl -> register_persistent ->
> register_clean ). such that changes aren't written on session.flush. is
> there a way to attach a modified object back to a session, such that
> its registered as dirty?


--~--~---------~--~----~------------~-------~--~----~
 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