Alberto Valverde wrote: > You'll need access to the transaction instance. Unfortunately it's a > local variable inside database.sa_rwt. Perhaps it should be bound to > cherrypy.request so you could do: > > connection = engine.connect() > cherrypy.request.sa_transaction.add(connection) > > then connection.execute(table.select()) # or whatever > > as described in the mentioned link. Can you try this patch see if it > works? >
The following works for me, without any patch. Is there a reason it should not? conn = session.context.get_current().connection(SomeMappedClass) conn.execute(....).fetchall() --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

