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

It is not working for me either, where as in TG 1.0 similar case was
working perfectly. Would look for a solution in TG 2.0. Meanwhile, I
am a beginner and would request some information on how to remove
zope.transaction-handling from the application stack and what are the
side effects.

thanks,
Sanjay

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