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

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


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

Modified Files:
      Tag: Zope3-Bangalore-TTW-Branch
	metaConfigure.py 
Log Message:
update of metaconfiguration files with actions for interfaces


=== Zope3/lib/python/Zope/Event/metaConfigure.py 1.2.12.1 => 1.2.12.2 ===
--- Zope3/lib/python/Zope/Event/metaConfigure.py:1.2.12.1	Mon Oct 21 10:38:42 2002
+++ Zope3/lib/python/Zope/Event/metaConfigure.py	Mon Oct 21 10:55:56 2002
@@ -1,53 +1,54 @@
-##############################################################################
-#
-# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
-# All Rights Reserved.
-# 
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-# 
-##############################################################################
-"""
-
-Revision information:
-$Id$
-"""
-
-from Zope.Configuration.Action import Action
-
-from Zope.Event import subscribeMany
-from Zope.Event.IEvent import IEvent
-
-counter = 0
-
-def subscribe(_context, subscriber, event_types=(IEvent), filter=None):
-    global counter
-    counter += 1
-
-    subscriber = _context.resolve(subscriber)
-
-    event_type_names = event_types
-    event_types=[]
-    for event_type_name in event_type_names.split():
-        event_types.append(_context.resolve(event_type_name))
-                        
-    if filter is not None:
-        filter = _context.resolve(filter)
-
-    return [
-        Action(
-             # subscriptions can never conflict
-             discriminator = ('subscribe', counter),
-             callable = subscribeMany,
-             args = (subscriber, event_types, filter)
-             ),
-        Action(
-            discriminator = None,
-            callable = handler,
-            args = ('Interfaces', 'provideInterface', provides.__module__+'.'+provides.__name__,provides)
-              )      
-        ]
+##############################################################################
+#
+# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
+# All Rights Reserved.
+# 
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+# 
+##############################################################################
+"""
+
+Revision information:
+$Id$
+"""
+
+from Zope.Configuration.Action import Action
+
+from Zope.Event import subscribeMany
+from Zope.Event.IEvent import IEvent
+
+counter = 0
+
+def subscribe(_context, subscriber, event_types=(IEvent), filter=None):
+    global counter
+    counter += 1
+
+    subscriber = _context.resolve(subscriber)
+
+    event_type_names = event_types
+    event_types=[]
+    for event_type_name in event_type_names.split():
+        event_types.append(_context.resolve(event_type_name))
+                        
+    if filter is not None:
+        filter = _context.resolve(filter)
+
+    return [
+        Action(
+             # subscriptions can never conflict
+             discriminator = ('subscribe', counter),
+             callable = subscribeMany,
+             args = (subscriber, event_types, filter)
+             ),
+        Action(
+            discriminator = None,
+            callable = handler,
+            args = ('Interfaces', 'provideInterface', provides.__module__+'.'+provides.__name__,provides)
+              )      
+        ]
+