[Zope-Checkins] CVS: Zope/lib/python/ZPublisher - HTTPRequest.py:1.67

Tres Seaver tseaver@zope.com
Fri, 12 Apr 2002 11:47:27 -0400


Update of /cvs-repository/Zope/lib/python/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv12776/lib/python/ZPublisher

Modified Files:
	HTTPRequest.py 
Log Message:
- Resolve Collector #89 by making repr of record eval'able as a dict.


=== Zope/lib/python/ZPublisher/HTTPRequest.py 1.66 => 1.67 ===
 
     def __repr__(self):
+        #return repr( self.__dict__ )
         L1 = self.__dict__.items()
         L1.sort()
-        return ', '.join(
-            map(lambda item: "%s: %s" % (item[0], repr(item[1])), L1))
+        return '{%s}' % ', '.join(
+            map(lambda item: "'%s': %s" % (item[0], repr(item[1])), L1))
 
 # Flags
 SEQUENCE=1