On Mar 6, 2008, at 12:11 PM, Steve Zatz wrote:

>
> This is probably obvious but I was confused by the fact that you can
> refresh an object through session.refresh(obj) but that doesn't
> guarantee that the object is in the session and doesn't put it in the
> session if it is not.  Is the accepted way to handle this to just
> follow the refresh with a session.update(obj)?

the refresh() and expire() calls should be throwing an error if the  
object is not present in the local session...is this not the case ?   
(are you on 0.4 ?) 
  

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" 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/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to