On 9/12/07, Max Ischenko <[EMAIL PROTECTED]> wrote: > > Hello, > > On 9/11/07, Ben Bangert <[EMAIL PROTECTED]> wrote: > > > > > > Yep, again, once the generator is passed up the stack, Pylons wraps > > up its globals (if it didn't, they'd leak). You can grab local copies > > of some of the globals in your generator like: > > > > def somegen(): > > req = request._current_obj() > > # do stuff > > yield 'some data' > > > I wonder if this _current_obj thingy is documented somewhere. >
I see, this is just an instance of http://pythonpaste.org/class-paste.wsgiwrappers.WSGIRequest.html Btw, what are the plans of Pylons team towards new Ian's WebOb classes which are aimed to replace WSGIRequest/Response? Max. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
