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

Florent Guillaume fg at nuxeo.com
Thu Dec 22 13:26:51 EST 2005


Log message for revision 40985:
  Harden REQUEST __repr__.
  

Changed:
  U   Zope/branches/2.9/lib/python/ZPublisher/HTTPRequest.py

-=-
Modified: Zope/branches/2.9/lib/python/ZPublisher/HTTPRequest.py
===================================================================
--- Zope/branches/2.9/lib/python/ZPublisher/HTTPRequest.py	2005-12-22 15:49:47 UTC (rev 40984)
+++ Zope/branches/2.9/lib/python/ZPublisher/HTTPRequest.py	2005-12-22 18:26:50 UTC (rev 40985)
@@ -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