Ján ONDREJ (SAL) wrote:
> On Nov 10, 1:55 pm, Alberto Valverde <[EMAIL PROTECTED]> wrote:
>
>> Ján ONDREJ (SAL) wrote:
>> You could perhaps try to commit the transaction manually in your
>> controller and handling yourself any exception that occurs:
>>
>> try:
>> transaction.commit()
>> except StandardError, e:
>> handle_exception(e)
>>
>
> Thank you, but does not work too:
>
> UnboundExecutionError: Instance <User at 0x965fb2c> is not bound to a
> Session; attribute refresh operation cannot proceed
>
> Next example? :-)
>
try:
DBSession.flush() # <---
transaction.commit()
except StandardError, e:
handle_exception(e)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" 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-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---