[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Container/Views/Browser - Adding.py:1.13 Contents.py:1.11
Jim Fulton
jim@zope.com
Sun, 1 Dec 2002 05:32:59 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Container/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv3545/lib/python/Zope/App/OFS/Container/Views/Browser
Modified Files:
Adding.py Contents.py
Log Message:
Renamed publishEvent to publish
=== Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/Adding.py 1.12 => 1.13 ===
--- Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/Adding.py:1.12 Sat Nov 30 13:34:34 2002
+++ Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/Adding.py Sun Dec 1 05:32:28 2002
@@ -26,7 +26,7 @@
from Zope.App.PageTemplate import ViewPageTemplateFile
from Zope.ContextWrapper import ContextMethod, getbaseobject
from Zope.Proxy.ContextWrapper import ContextWrapper
-from Zope.Event import publishEvent
+from Zope.Event import publish
from Zope.Event.ObjectEvent \
import ObjectCreatedEvent, ObjectModifiedEvent, ObjectAddedEvent
from Zope.App.OFS.Container.IZopeContainer import IZopeContainer
@@ -114,7 +114,7 @@
self.contentName = id
content = createObject(self, type_name)
- publishEvent(self.context, ObjectCreatedEvent(content))
+ publish(self.context, ObjectCreatedEvent(content))
self.add(content)
self.request.response.redirect(self.nextURL())
=== Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/Contents.py 1.10 => 1.11 ===
--- Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/Contents.py:1.10 Sat Nov 30 13:34:34 2002
+++ Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/Contents.py Sun Dec 1 05:32:28 2002
@@ -21,7 +21,6 @@
from Zope.ComponentArchitecture \
import queryView, getView, queryAdapter, getAdapter
from Zope.App.DublinCore.IZopeDublinCore import IZopeDublinCore
-from Zope.Event import publishEvent
from Zope.Proxy.ContextWrapper import ContextWrapper
from Zope.App.OFS.Container.IZopeContainer import IZopeContainer