On Mon, 2006-05-15 at 14:30 -0400, Kevin Dangoor wrote: > On 5/15/06, jvanasco <[EMAIL PROTECTED]> wrote: > > using middleware, how can I do the following: > > a- store a per-request variable > > There's a clean mechanism for doing this that's part of Paste, but the > name eludes me at the moment.
paste.registry http://pythonpaste.org/module-paste.registry.html Data can also be passed through middleware layers by putting it in the WSGI "environ" dict. The Paste registry is actually stored this way with some magic to access objects in it as package globals within the request's call stack without direct access to the environ. -- Matt Good <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

