[Zope3-checkins] CVS: Zope3/lib/python/Zope/Event - metaConfigure.py:1.2.12.4
Rakesh Naidu
rnaidu@zeomega.com
Tue, 22 Oct 2002 06:13:28 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/Event
In directory cvs.zope.org:/tmp/cvs-serv20854/lib/python/Zope/Event
Modified Files:
Tag: Zope3-Bangalore-TTW-Branch
metaConfigure.py
Log Message:
update of InterfaceService and changes on metaconfigure files
=== Zope3/lib/python/Zope/Event/metaConfigure.py 1.2.12.3 => 1.2.12.4 ===
--- Zope3/lib/python/Zope/Event/metaConfigure.py:1.2.12.3 Mon Oct 21 11:04:01 2002
+++ Zope3/lib/python/Zope/Event/metaConfigure.py Tue Oct 22 06:13:28 2002
@@ -21,10 +21,11 @@
from Zope.Event import subscribeMany
from Zope.Event.IEvent import IEvent
+from Interface import Interface
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,6 +45,10 @@
discriminator = ('subscribe', counter),
callable = subscribeMany,
args = (subscriber, event_types, filter)
- )
+ ),
+ Action(
+ discriminator = None,
+ callable = subscribeMany,
+ args = ('Interfaces', 'provideInterface', type.__module__+'.'+type.__name__, type)
+ )
]
-