[Zope3-checkins]
SVN: Zope3/branches/srichter-twisted-integration/src/zope/publisher/http.py
Made header name non-zope specific to play nice with twisted.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Thu Apr 28 06:35:17 EDT 2005
Log message for revision 30206:
Made header name non-zope specific to play nice with twisted.
Changed:
U Zope3/branches/srichter-twisted-integration/src/zope/publisher/http.py
-=-
Modified: Zope3/branches/srichter-twisted-integration/src/zope/publisher/http.py
===================================================================
--- Zope3/branches/srichter-twisted-integration/src/zope/publisher/http.py 2005-04-27 18:54:13 UTC (rev 30205)
+++ Zope3/branches/srichter-twisted-integration/src/zope/publisher/http.py 2005-04-28 10:35:17 UTC (rev 30206)
@@ -468,11 +468,13 @@
'See IPublicationRequest'
super(HTTPRequest, self).setPrincipal(principal)
+ # XXX: This should really become an event that other parts of the
+ # framework can listen to.
logging_info = ILoggingInfo(principal, None)
if logging_info is not None:
message = logging_info.getLogMessage()
if message is not None:
- self.response.setHeader('x-zope-principal', message)
+ self.response.setHeader('x-principal', message)
def _createResponse(self, outstream):
# Should be overridden by subclasses
More information about the Zope3-Checkins
mailing list