[Zope3-checkins] CVS: Zope3/lib/python/Zope/Event - IObjectEvent.py:1.5 ObjectEvent.py:1.6

Benjamin Saller bcsaller@yahoo.com
Thu, 5 Dec 2002 05:34:48 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/Event
In directory cvs.zope.org:/tmp/cvs-serv8109

Modified Files:
	IObjectEvent.py ObjectEvent.py 
Log Message:
*added events and interfaces for event notifications for object content and annotation modifications

=== Zope3/lib/python/Zope/Event/IObjectEvent.py 1.4 => 1.5 ===
--- Zope3/lib/python/Zope/Event/IObjectEvent.py:1.4	Thu Oct  3 16:53:22 2002
+++ Zope3/lib/python/Zope/Event/IObjectEvent.py	Thu Dec  5 05:34:47 2002
@@ -42,6 +42,13 @@
 class IObjectModifiedEvent(IObjectEvent):
     """An object has been modified"""
 
+class IObjectAnnotationsModifiedEvent(IObjectModifiedEvent):
+    """An object's annotations have been modified"""
+
+class IObjectContentModifiedEvent(IObjectModifiedEvent):
+    """An object's content has been modified"""
+
+
 class IObjectRemovedEvent(IObjectEvent):
     """An object has been removed from a container"""
 


=== Zope3/lib/python/Zope/Event/ObjectEvent.py 1.5 => 1.6 ===
--- Zope3/lib/python/Zope/Event/ObjectEvent.py:1.5	Sat Oct  5 14:34:02 2002
+++ Zope3/lib/python/Zope/Event/ObjectEvent.py	Thu Dec  5 05:34:47 2002
@@ -22,6 +22,7 @@
 from IObjectEvent import IObjectEvent, IObjectCreatedEvent
 from IObjectEvent import IObjectAddedEvent, IObjectModifiedEvent
 from IObjectEvent import IObjectRemovedEvent, IObjectMovedEvent
+from IObjectEvent import IObjectContentModifiedEvent, IObjectAnnotationsModifiedEvent
 
 class ObjectEvent:
     """Something has happened to an object"""
@@ -49,6 +50,16 @@
     """An object has been modified"""
 
     __implements__ = IObjectModifiedEvent
+
+class ObjectAnnotationsModifiedEvent(ObjectModifiedEvent):
+    """An object's annotations have been modified"""
+
+    __implements__ = IObjectAnnotationsModifiedEvent
+
+class ObjectContentModifiedEvent(ObjectModifiedEvent):
+    """An object's content has been modified"""
+
+    __implements__ = IObjectContentModifiedEvent
 
 class ObjectRemovedEvent(ObjectEvent):
     """An object has been removed from a container"""