[Zope] AttributeError: RESPONSE ?!

Dieter Maurer dieter at handshake.de
Thu Feb 10 14:11:48 EST 2005


Peter Sabaini wrote at 2005-2-10 12:05 +0100:
>this one has got me stumped; from the traceback:
>
>"""
>Module ZPublisher.HTTPRequest, line 1220, in __getattr__
>
>AttributeError: RESPONSE
>"""
>
>AFAIK the REQUEST object should *always* have a RESPONSE attribute, right?

Indeed.

It is set in "ZPublisher.HTTPRequest.HTTPRequest.__init__",
i.e. in the request constructor itself.

However, it lives in "REQUEST.other" and this could be cleared
(by malicious or at least surprising code)...

-- 
Dieter


More information about the Zope mailing list