Hi

i am not sure if this is an issue related to turbogears or sqlalchemy.

if i try to access a property of an object after doing a
transaction.commit() i get this UnboundExecutionError

UnboundExecutionError: Parent instance <User at 0x9a29b10> is not
bound to a Session; lazy load operation of attribute 'config' cannot
proceed

I have to do transaction.commit() to update the database immediately
so that other requests to this
object will get the updated value.
it seems when we do transaction.commit() the current DBSession is
destroyed and a new one is created and
all the objects in the memory are no longer associated to any session.

I tried calling DBSession.flush() but that does not make immediate
database updates.
How can i make immediate db updates instead of depending on the TG2
database commits??

thnx..

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

Reply via email to