[Zope-Checkins] SVN: Zope/trunk/lib/python/ZPublisher/HTTPRequest.py Harden REQUEST __repr__.

Florent Guillaume fg at nuxeo.com
Thu Dec 22 13:27:11 EST 2005


Log message for revision 40986:
  Harden REQUEST __repr__.
  

Changed:
  U   Zope/trunk/lib/python/ZPublisher/HTTPRequest.py

-=-
Modified: Zope/trunk/lib/python/ZPublisher/HTTPRequest.py
===================================================================
--- Zope/trunk/lib/python/ZPublisher/HTTPRequest.py	2005-12-22 18:26:50 UTC (rev 40985)
+++ Zope/trunk/lib/python/ZPublisher/HTTPRequest.py	2005-12-22 18:27:11 UTC (rev 40986)
@@ -1293,7 +1293,7 @@
         return result+"</table>"
 
     def __repr__(self):
-        return "<%s, URL=%s>" % (self.__class__.__name__, self['URL'])
+        return "<%s, URL=%s>" % (self.__class__.__name__, self.get('URL'))
 
     def text(self):
         result="FORM\n\n"



More information about the Zope-Checkins mailing list