[Zope-dev] Re: Zope2.7.0rc2 AttributeError: RESPONSE object has noattribute 'setHeader'

Dieter Maurer dieter at handshake.de
Sat Mar 27 05:19:19 EST 2004


Christophe Tronche wrote at 2004-3-24 17:17 +0100:
>After investigating (but not solving the problem...)
>
>The objects are there, but some security stuff returns None instead of the 
>object when we aren't supposed to have the rights... (could someone tell me 
>what function is first called to get the value of an object such as 
>AUTHENTICATED_USER ???).

"RESPONSE" is set in "HTTPRequest"'s constructor
("ZPublisher.HTTPRequest.HTTPRequest.__init__").

"AUTHENTICATED_USER" is set after authentication at the end
of traversal: "ZPublisher.BaseRequest.BaseRequest.traverse".

-- 
Dieter



More information about the Zope-Dev mailing list