[Zope3-checkins] CVS: Zope3/src/zope/app/event - globalservice.py:1.11
Jeremy Hylton
jeremy@zope.com
Mon, 30 Jun 2003 13:51:00 -0400
Update of /cvs-repository/Zope3/src/zope/app/event
In directory cvs.zope.org:/tmp/cvs-serv2930
Modified Files:
globalservice.py
Log Message:
Make minimal improvement to the detail view in the global event service.
The code disabled with an "XXX this doesn't seem to work" comment
seems to work. The output isn't pretty, but it's better than nothing.
=== Zope3/src/zope/app/event/globalservice.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/event/globalservice.py:1.10 Sat Jun 7 02:37:24 2003
+++ Zope3/src/zope/app/event/globalservice.py Mon Jun 30 13:50:28 2003
@@ -82,13 +82,10 @@
def notify(self, event):
c = event.__class__
detail = StringIO()
- if 0:
- # XXX Apparently this doesn't work; why not?
- data = event.__dict__.items()
- data.sort()
- pprint(data, detail)
- else:
- print >>detail, 'XXX detail temporarily disabled'
+ data = event.__dict__.items()
+ data.sort()
+ # XXX The detail output could be improved. Not sure what is wanted.
+ pprint.pprint(data, detail)
self.logger.log(self.severity, "%s.%s: %s",
c.__module__, c.__name__, detail.getvalue())