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.

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to