On Sep 11, 2007, at 10:54 PM, Max Ischenko wrote:

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

The Pylons globals (c, g, session, request, response) are all object proxies that actually relay all access to the real objects. This is to ensure thread safety and request safety in your application. Using '_current_obj()' retrieves the real object they're proxying to.

Btw, what are the plans of Pylons team towards new Ian's WebOb classes which are aimed to replace WSGIRequest/Response?

Pylons will move to having the WebOb Response/Request classes as the ones used by Pylons in the future. I'm not sure it'll be in by 0.9.7 or prolly just optional at that point, and default in 0.9.8. It should be a pretty minor switch as the methods are all identical for the most part.

Cheers,
Ben

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to