[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces - event.py:1.11

Jim Fulton jim at zope.com
Sun Sep 21 13:32:24 EDT 2003


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

Modified Files:
	event.py 
Log Message:
Moved location-relevent events to container.

Object events no longer have location.


=== Zope3/src/zope/app/interfaces/event.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/interfaces/event.py:1.10	Wed Jun 25 11:20:37 2003
+++ Zope3/src/zope/app/interfaces/event.py	Sun Sep 21 13:32:23 2003
@@ -275,15 +275,13 @@
 
     object = Attribute("The subject of the event.")
 
-    location = Attribute("An optional object location.")
-
 class IObjectCreatedEvent(IObjectEvent):
     """An object has been created.
 
     The location will usually be None for this event."""
 
-class IObjectAddedEvent(IObjectEvent):
-    """An object has been added to a container."""
+class IObjectCopiedEvent(IObjectCreatedEvent):
+    """An object has been copied"""
 
 class IObjectModifiedEvent(IObjectEvent):
     """An object has been modified"""
@@ -293,19 +291,6 @@
 
 class IObjectContentModifiedEvent(IObjectModifiedEvent):
     """An object's content has been modified"""
-
-class IObjectRemovedEvent(IObjectEvent):
-    """An object has been removed from a container"""
-
-class IObjectMovedEvent(IObjectRemovedEvent, IObjectAddedEvent):
-    """An object has been moved"""
-
-    fromLocation = Attribute("The old location for the object.")
-
-class IObjectCopiedEvent(IObjectAddedEvent):
-    """An object has been copied"""
-
-    fromLocation = Attribute("The old location for the object.")
 
 class IDatabaseOpenedEvent(IEvent):
     """The main database has been opened."""




More information about the Zope3-Checkins mailing list