[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Container - ZopeContainerAdapter.py:1.4
Jim Fulton
jim@zope.com
Sun, 1 Dec 2002 05:32:59 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Container
In directory cvs.zope.org:/tmp/cvs-serv3545/lib/python/Zope/App/OFS/Container
Modified Files:
ZopeContainerAdapter.py
Log Message:
Renamed publishEvent to publish
=== Zope3/lib/python/Zope/App/OFS/Container/ZopeContainerAdapter.py 1.3 => 1.4 ===
--- Zope3/lib/python/Zope/App/OFS/Container/ZopeContainerAdapter.py:1.3 Sat Nov 30 13:34:34 2002
+++ Zope3/lib/python/Zope/App/OFS/Container/ZopeContainerAdapter.py Sun Dec 1 05:32:28 2002
@@ -22,7 +22,7 @@
from Zope.App.OFS.Container.IContainer import IContainerNamesContainer
from Zope.ComponentArchitecture import queryAdapter
from Zope.Proxy.ContextWrapper import ContextWrapper
-from Zope.Event import publishEvent
+from Zope.Event import publish
from Zope.Event.ObjectEvent \
import ObjectRemovedEvent, ObjectModifiedEvent, ObjectAddedEvent
from Zope.App.OFS.Container.IAddNotifiable import IAddNotifiable
@@ -104,14 +104,14 @@
# Publish an added event
object = ContextWrapper(container[key], container, name=key)
- publishEvent(container, ObjectAddedEvent(object))
+ publish(container, ObjectAddedEvent(object))
# Call the after add hook, if necessary
adapter = queryAdapter(object, IAddNotifiable)
if adapter is not None:
adapter.manage_afterAdd(object, container)
- publishEvent(container, ObjectModifiedEvent(container))
+ publish(container, ObjectModifiedEvent(container))
return key
def __delitem__(self, key):
@@ -129,7 +129,7 @@
del container[key]
- publishEvent(container, ObjectRemovedEvent(object))
- publishEvent(container, ObjectModifiedEvent(container))
+ publish(container, ObjectRemovedEvent(object))
+ publish(container, ObjectModifiedEvent(container))
return key