On Tue, Sep 18, 2012 at 02:49:30AM -0700, Juan Antonio Ibáńez wrote: > I have one model object for an account table. I have one DB trigger > which updates acc balance each time I insert one movement into the acc. I
I needed to do something like this to obtain the new id for an item I created. I used DBSession.flush() and DBSession was imported from foo.model import DBSession (add some stuff into the database) DBSession.add(newthing) DBSession.flush() This was done on the command line though. -- Craig Small VK2XLZ http://enc.com.au/ csmall at : enc.com.au Debian GNU/Linux http://www.debian.org/ csmall at : debian.org GPG fingerprint: 5D2F B320 B825 D939 04D2 0519 3938 F96B DF50 FEA5 -- 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.

