Hello,

I know there is documentation on this but I am still fuzzy on certain
practices when using the session.  In my application I have a function that
returns a new non scoped session.  In one method (method a) I get object o
from this session.  I call another method (method b) that needs to use o and
potentially make changes to it.  Is it best practice to pass the session and
the object as a parameter to method b or should should I pass only the
object and use session = Session.object_session(o) to grab that session?
Is there some other option (like re-fetching that object every time which is
what I am trying to avoid).

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