Identity (or visit) was doing a database call outside of the view of expose.
I think that this can be done in middleware (though Ben was mentioning that he didn't like middleware for this because you might not need a transaction). Kevin On 2/28/07, Mark Ramm <[EMAIL PROTECTED]> wrote: > Is there a reason we're opening a transaction in the expose decorator, and > closing it with a cherrypy filter? > > I would think we could do both in filters, or both in the expose method. > > We wrote a new cherrypy tool for it, but I'm tempted to put it into expose, > or to pull the opening of the transaction out of expose and put it into a > tool. > > (Alternatively we could create some middleware to do this...) > > --Mark > -- Kevin Dangoor TurboGears / Zesty News email: [EMAIL PROTECTED] company: http://www.BlazingThings.com blog: http://www.BlueSkyOnMars.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears Trunk" 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-trunk?hl=en -~----------~----~----~----~------~----~------~--~---
