[Zope3-checkins] SVN: Zope3/trunk/src/buddydemo/browser.py Updated
to use event.notify rather than zope.app.publish.
Jim Fulton
jim at zope.com
Thu May 27 09:05:36 EDT 2004
Log message for revision 25042:
Updated to use event.notify rather than zope.app.publish.
-=-
Modified: Zope3/trunk/src/buddydemo/browser.py
===================================================================
--- Zope3/trunk/src/buddydemo/browser.py 2004-05-27 13:00:48 UTC (rev 25041)
+++ Zope3/trunk/src/buddydemo/browser.py 2004-05-27 13:05:35 UTC (rev 25042)
@@ -1,6 +1,6 @@
import zope.interface
from buddydemo.interfaces import IBuddy, IPostalInfo
-from zope.app.event import publish
+from zope.event import notify
from zope.app.event.objectevent import ObjectModifiedEvent
class BuddyInfo:
@@ -27,7 +27,7 @@
def update(self, first, last):
self.context.first = first
self.context.last = last
- publish(self.context, ObjectModifiedEvent(self.context))
+ notify(ObjectModifiedEvent(self.context))
self.request.response.redirect("rename.html")
More information about the Zope3-Checkins
mailing list