[Zope3-checkins] CVS: Zope3/src/zope/app/services - configuration.py:1.7 configurationmanager.py:1.4

Guido van Rossum guido@python.org
Wed, 26 Feb 2003 11:12:07 -0500


Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv30716/src/zope/app/services

Modified Files:
	configuration.py configurationmanager.py 
Log Message:
Rename manage_afterAdd and manage_beforeDelete to afterAddHook and
beforeDeleteHook.  Patch contributed by Christian Heimes.


=== Zope3/src/zope/app/services/configuration.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/services/configuration.py:1.6	Thu Jan 16 07:00:00 2003
+++ Zope3/src/zope/app/services/configuration.py	Wed Feb 26 11:11:36 2003
@@ -263,7 +263,7 @@
     def deactivated(self):
         pass
 
-    def manage_beforeDelete(self, configuration, container):
+    def beforeDeleteHook(self, configuration, container):
         "See IDeleteNotifiable"
 
         objectstatus = configuration.status
@@ -342,17 +342,17 @@
         return component
     getComponent = ContextMethod(getComponent)
 
-    def manage_afterAdd(self, configuration, container):
+    def afterAddHook(self, configuration, container):
         "See IAddNotifiable"
         component = configuration.getComponent()
         dependents = getAdapter(component, IDependable)
         objectpath = getPhysicalPathString(configuration)
         dependents.addDependent(objectpath)
 
-    def manage_beforeDelete(self, configuration, container):
+    def beforeDeleteHook(self, configuration, container):
         "See IDeleteNotifiable"
         super(NamedComponentConfiguration, self
-              ).manage_beforeDelete(configuration, container)
+              ).beforeDeleteHook(configuration, container)
         component = configuration.getComponent()
         dependents = getAdapter(component, IDependable)
         objectpath = getPhysicalPathString(configuration)


=== Zope3/src/zope/app/services/configurationmanager.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/services/configurationmanager.py:1.3	Mon Feb  3 09:53:38 2003
+++ Zope3/src/zope/app/services/configurationmanager.py	Wed Feb 26 11:11:36 2003
@@ -143,7 +143,7 @@
     def moveDown(self, names):
         self._moveUpOrDown(names, 1)
 
-    def manage_beforeDelete(self, object, container):
+    def beforeDeleteHook(self, object, container):
         assert object == self
         container = getAdapter(object, IZopeWriteContainer)
         for k, v in self._data: