> @expose()
> def insert_a_record(self):
>    DBSession.execute(foo_table.insert({'user_id':2, 'org_id': 2}))
>    DBSession.query(User).filter(User.user_id == None).delete()
>    return "Successful!"

Thanks a lot! The idea of making the session dirty works.

Although the dummy line gave me the error "ArgumentError: Only
deletion via a single table query is currently supported," I did some
other thing to make the session dirty and it worked.

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