[Zope3-checkins] CVS: Zope3/lib/python/Zope/Event - metaConfigure.py:1.2.12.1

Rakesh Naidu rnaidu@zeomega.com
Mon, 21 Oct 2002 10:38:43 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/Event
In directory cvs.zope.org:/tmp/cvs-serv2751/Zope3-Bangalore-TTW-Branch/lib/python/Zope/Event

Modified Files:
      Tag: Zope3-Bangalore-TTW-Branch
	metaConfigure.py 
Log Message:
added Interface actions for the parameters type,for_,provides


=== Zope3/lib/python/Zope/Event/metaConfigure.py 1.2 => 1.2.12.1 ===
--- Zope3/lib/python/Zope/Event/metaConfigure.py:1.2	Mon Jun 10 19:29:25 2002
+++ Zope3/lib/python/Zope/Event/metaConfigure.py	Mon Oct 21 10:38:42 2002
@@ -24,7 +24,7 @@
 
 counter = 0
 
-def subscribe(_context, subscriber, event_types=(IEvent,), filter=None):
+def subscribe(_context, subscriber, event_types=(IEvent), filter=None):
     global counter
     counter += 1
 
@@ -44,5 +44,10 @@
              discriminator = ('subscribe', counter),
              callable = subscribeMany,
              args = (subscriber, event_types, filter)
-             )
+             ),
+        Action(
+            discriminator = None,
+            callable = handler,
+            args = ('Interfaces', 'provideInterface', provides.__module__+'.'+provides.__name__,provides)
+              )      
         ]