[Zope3-checkins] CVS: Zope3/lib/python/Zope/Event - ObjectEvent.py:1.3.2.1

Jim Fulton jim@zope.com
Thu, 3 Oct 2002 18:17:22 -0400


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

Modified Files:
      Tag: ZopeDublinCore-branch
	ObjectEvent.py 
Log Message:
Checking in still-unfinished dublin core work on
ZopeDublinCore-branch.

To do:

  - Make a number of existing tests work now that a lot of views 
    need to generate events. (Perhaps these will need to 
    be factored into adapters and views. Sigh.)

  - Make object events able to compute locations for there
    objects when an location hasn't been provided to the constructor.

  - Add some UI for editing at least some meta data.

Handling of lists (e.g. subjects, creators) may need some more thought
as these will often want to come from standard system-provided lists.




=== Zope3/lib/python/Zope/Event/ObjectEvent.py 1.3 => 1.3.2.1 ===
--- Zope3/lib/python/Zope/Event/ObjectEvent.py:1.3	Thu Oct  3 16:53:22 2002
+++ Zope3/lib/python/Zope/Event/ObjectEvent.py	Thu Oct  3 18:16:51 2002
@@ -40,6 +40,11 @@
 
     __implements__ = IObjectAddedEvent
 
+class ObjectCreatedEvent(ObjectEvent):
+    """An object has been added"""
+
+    __implements__ = IObjectCreatedEvent
+
 class ObjectModifiedEvent(ObjectEvent):
     """An object has been modified"""