On Nov 27, 2007 6:13 PM, Mike Orr <[EMAIL PROTECTED]> wrote:
> Somehow it switched to WSGIResponse instead of webOb.Response, even
> though use_webob is still true.

The web debugger reports this curiosity:

>>> type(request._current_obj())
<class 'webob.Request'>
>>> type(response._current_obj())
<class 'paste.wsgiwrappers.WSGIResponse'>

I have worked around this in my code, but it needs to be fixed eventually.

    def __after__(self):
        if config["debug"]:
            import logging
            access = logging.getLogger("access").info
            try:
                status = response.status_int  # webOb response
            except AttributeError:
                status = response.status_code # WSGIResponse
            access("%s %s", status, request.url)

http://pylonshq.com/project/pylonshq/ticket/333

-- 
Mike Orr <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-devel" 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-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to