[Zope-CVS] CVS: Products/Event - IEvent.py:1.2 __init__.py:1.2

Martijn Pieters mj@zope.com
Thu, 19 Sep 2002 17:46:53 -0400


Update of /cvs-repository/Products/Event
In directory cvs.zope.org:/tmp/cvs-serv12254

Modified Files:
	IEvent.py __init__.py 
Log Message:
New Event Registry.


=== Products/Event/IEvent.py 1.1.1.1 => 1.2 ===
--- Products/Event/IEvent.py:1.1.1.1	Mon Jun 10 12:59:07 2002
+++ Products/Event/IEvent.py	Thu Sep 19 17:46:53 2002
@@ -18,10 +18,14 @@
 """
 
 from Interface import Interface
+from EventRegistry import eventRegistry
 
 class IEvent(Interface):
     """The Base interface for Events"""
 
+eventRegistry.registerEvent('Products.Event.IEvent.IEvent', IEvent,
+                            'Base Event')
+
 class IFilterableEvent(IEvent):
     """ A filterable Event """
 
@@ -29,3 +33,6 @@
         """
         Return filter data for this event.
         """
+
+eventRegistry.registerEvent('Products.Event.IEvent.IFilterableEvent',
+                            IFilterableEvent, 'Filterable Event')


=== Products/Event/__init__.py 1.1.1.1 => 1.2 ===
--- Products/Event/__init__.py:1.1.1.1	Mon Jun 10 12:59:07 2002
+++ Products/Event/__init__.py	Thu Sep 19 17:46:53 2002
@@ -19,6 +19,7 @@
 __version__ = "$Revision$"[11:-2]
 
 import EventService
+from EventRegistry import eventRegistry
 
 def initialize(context):
     context.registerClass(