[Zope3-checkins] CVS: Zope3/src/zope/publisher - http.py:1.6
Jim Fulton
jim@zope.com
Mon, 3 Feb 2003 10:01:19 -0500
Update of /cvs-repository/Zope3/src/zope/publisher
In directory cvs.zope.org:/tmp/cvs-serv15081
Modified Files:
http.py
Log Message:
Added HTTP-specific __repr__.
=== Zope3/src/zope/publisher/http.py 1.5 => 1.6 ===
--- Zope3/src/zope/publisher/http.py:1.5 Sun Jan 26 07:11:52 2003
+++ Zope3/src/zope/publisher/http.py Mon Feb 3 10:01:17 2003
@@ -541,6 +541,11 @@
URL = RequestDataProperty(URLGetter)
+ def __repr__(self):
+ # Returns a *short* string.
+ return '<%s instance at 0x%x, URL=%s>' % (
+ str(self.__class__), id(self), `self.URL`)
+
def get(self, key, default=None):
'See Interface.Common.Mapping.IReadMapping'