Kevin Dangoor wrote: > 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).
A way that you can do this in middleware is to put a transaction container into the environment. Basically a fancy list that people can append to. Then on the way out, commit all the objects in that list (typically framework-specific transactions). -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
