[Zope3-checkins] CVS: Zope3/src/zope/app/container/tests - baseizopeitemcontainer.py:1.3 test_zopecontaineradpter.py:1.3
Guido van Rossum
guido@python.org
Wed, 26 Feb 2003 11:12:06 -0500
Update of /cvs-repository/Zope3/src/zope/app/container/tests
In directory cvs.zope.org:/tmp/cvs-serv30716/src/zope/app/container/tests
Modified Files:
baseizopeitemcontainer.py test_zopecontaineradpter.py
Log Message:
Rename manage_afterAdd and manage_beforeDelete to afterAddHook and
beforeDeleteHook. Patch contributed by Christian Heimes.
=== Zope3/src/zope/app/container/tests/baseizopeitemcontainer.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/container/tests/baseizopeitemcontainer.py:1.2 Wed Dec 25 09:12:47 2002
+++ Zope3/src/zope/app/container/tests/baseizopeitemcontainer.py Wed Feb 26 11:11:35 2003
@@ -132,8 +132,8 @@
The new item must implement IAddNotifiable
and IDeleteNotifyable, and must have a notified attribute that
- is incremented when manageAfterAdd is called and decremented
- when manage_beforeDelete is called.
+ is incremented when afterAddHook is called and decremented
+ when beforeDeleteHook is called.
"""
raise TypeError("_sample_newItem was not implemented")
=== Zope3/src/zope/app/container/tests/test_zopecontaineradpter.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/container/tests/test_zopecontaineradpter.py:1.2 Wed Dec 25 09:12:47 2002
+++ Zope3/src/zope/app/container/tests/test_zopecontaineradpter.py Wed Feb 26 11:11:35 2003
@@ -32,11 +32,11 @@
class H:
__implements__ = IAddNotifiable, IDeleteNotifiable
notified = 0
- def manage_beforeDelete(self, object, container):
+ def beforeDeleteHook(self, object, container):
self.notified -= 1
- def manage_afterAdd(self, object, container):
+ def afterAddHook(self, object, container):
self.notified += 1
class Test(PlacelessSetup,