Sanjay schrieb:
> Hi,
> 
> I have a simple controller method like this:
> 
> @expose()
> def insert_a_record(self):
>     DBSession.connection().execute(foo_table.insert({'user_id':2,
> 'org_id': 2}))
>     return "Successfu!"
> 
> This controller returns successfully, but in the database the record
> is not inserted. Unable to understand why. Need help.

This looks like the problems I had a month or two ago:

http://www.nabble.com/Bug-in-zope.sqlalchemy-td22685504.html

It eventually led to me removing zope.transaction-handling from our 
application stack, as even with the described solution it didn't solve 
the problem for us.

Others have claimed that things work for them - dunno about that.

Diez

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