[Zope3-checkins] CVS: Zope3/src/zope/app/container - interfaces.py:1.3

Nathan Yergler nathan at yergler.net
Tue Mar 23 11:37:15 EST 2004


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

Modified Files:
	interfaces.py 
Log Message:


Removed IAddNotified, IRemoveNotified and IMoveNotified interfaces.




=== Zope3/src/zope/app/container/interfaces.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/container/interfaces.py:1.2	Sat Mar 13 17:02:15 2004
+++ Zope3/src/zope/app/container/interfaces.py	Tue Mar 23 11:37:15 2004
@@ -84,9 +84,9 @@
         generated, otherwise, and IObjectMovedEvent is generated.  An
         IObjectModifiedEvent is generated for the container.  If an
         add event is generated and the object can be adapted to
-        IAddNotifiable, then the adapter's addNotify method is called
+        IObjectAddedEvent, then the adapter's addNotify method is called
         with the event.  If the object can be adapted to
-        IMoveNotifiable, then the adapter's moveNotify method is
+        IObjectMovedEvent, then the adapter's moveNotify method is
         called with the event.
 
         If the object replaces another object, then the old object is
@@ -108,7 +108,7 @@
         If the deleted object's __parent__ and __name__ match the
         container and given name, then an IObjectRemovedEvent is
         generated and the attributes are set to None. If the object
-        can be adapted to IMoveNotifiable, then the adapter's
+        can be adapted to IObjectMovedEvent, then the adapter's
         moveNotify method is called with the event.
 
         Unless the object's __parent__ and __name__ attributes were
@@ -162,18 +162,6 @@
     newParent = Attribute("The new location parent for the object.")
     newName = Attribute("The new location name for the object.")
 
-class IMoveNotifiable(Interface):
-    """Interface for notification of being deleted, added, or moved."""
-
-    def moveNotify(event):
-        """Notify of a move event
-
-        This is called after the object has been added to the new
-        location and before it has been deleted from the old.
-
-        """
-
-
 ##############################################################################
 # Adding objects
 
@@ -192,13 +180,6 @@
 class IObjectAddedEvent(IObjectMovedEvent):
     """An object has been added to a container."""
 
-class IAddNotifiable(Interface):
-    """Interface for notification of being added."""
-
-    def addNotify(event):
-        """Hook method will call after an object is added to container.
-        """
-
 class IAdding(IView):
 
     def add(content):
@@ -256,13 +237,6 @@
 
 class IObjectRemovedEvent(IObjectMovedEvent):
     """An object has been removed from a container"""
-
-class IRemoveNotifiable(Interface):
-    """Interface for notification of being deleted."""
-
-    def removeNotify(object, container):
-        """Hook method will call before object is removed from container."""
-
 
 ##############################################################################
 # Finding objects




More information about the Zope3-Checkins mailing list