On Wed, Sep 19, 2012 at 7:12 AM, Juan Antonio Ibáñez
<[email protected]> wrote:
> Commiting the transaction manually disables the possibility to get data
> after that getting one error as:
>
> Instance <User at 0xa9d782c> is not bound to a Session; attribute refresh
> operation cannot proceed

This is why I, personally, go with Craig Small's approach:
DBSession.flush(). It does not close out the transaction, the session
continues to work, and I can get at the data that I need.

-- 
Michael J. Pedersen
My Online Resume: http://www.icelus.org/ -- Google+ http://plus.ly/pedersen
Google Talk: [email protected] -- Twitter: pedersentg

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