[Zope3-checkins] CVS: Zope3/lib/python/Zope/Event - metaConfigure.py:1.3 configure.zcml:NONE meta.zcml:NONE
Jim Fulton
jim@zope.com
Tue, 19 Nov 2002 18:25:46 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/Event
In directory cvs.zope.org:/tmp/cvs-serv11465/lib/python/Zope/Event
Modified Files:
metaConfigure.py
Removed Files:
configure.zcml meta.zcml
Log Message:
Two changes that were far reaching and interdependent.
- Changed existing directives that mention interfaces to register
those interfaces with the global interface service.
- Moved all configuration support (except that in Zope.Configuration)
into Zope.App. This was necessary to get the order of execution such
that the interface service was defined before directives that used
interfaces were used. This is a change that has been needed for
some time.
=== Zope3/lib/python/Zope/Event/metaConfigure.py 1.2 => 1.3 ===
--- Zope3/lib/python/Zope/Event/metaConfigure.py:1.2 Mon Jun 10 19:29:25 2002
+++ Zope3/lib/python/Zope/Event/metaConfigure.py Tue Nov 19 18:25:15 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,5 +45,11 @@
discriminator = ('subscribe', counter),
callable = subscribeMany,
args = (subscriber, event_types, filter)
- )
+ ),
+ Action(
+ discriminator = None,
+ callable = subscribeMany,
+ args = ('Interfaces', 'provideInterface',
+ type.__module__+'.'+type.__name__, type)
+ )
]
=== Removed File Zope3/lib/python/Zope/Event/configure.zcml ===
=== Removed File Zope3/lib/python/Zope/Event/meta.zcml ===