[Zope-Checkins]
SVN: Zope/trunk/lib/python/ZPublisher/HTTPRequest.py
Added explanatory comment to some obscure 5-year-old code
Paul Winkler
pw_lists at slinkp.com
Tue Aug 31 16:09:04 EDT 2004
Log message for revision 27367:
Added explanatory comment to some obscure 5-year-old code
in HTTPRequest.keys() - it caches URLN and BASEN in other.
Changed:
U Zope/trunk/lib/python/ZPublisher/HTTPRequest.py
-=-
Modified: Zope/trunk/lib/python/ZPublisher/HTTPRequest.py
===================================================================
--- Zope/trunk/lib/python/ZPublisher/HTTPRequest.py 2004-08-31 15:17:24 UTC (rev 27366)
+++ Zope/trunk/lib/python/ZPublisher/HTTPRequest.py 2004-08-31 20:09:02 UTC (rev 27367)
@@ -1233,6 +1233,8 @@
if (isCGI_NAME(key) or key[:5] == 'HTTP_') and (not hide_key(key)):
keys[key] = 1
+ # Cache URLN and BASEN in self.other.
+ # This relies on a side effect of has_key.
n=0
while 1:
n=n+1
More information about the Zope-Checkins
mailing list