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

Jim Fulton jim@zope.com
Wed, 13 Nov 2002 15:23:28 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/Event
In directory cvs.zope.org:/tmp/cvs-serv568/lib/python/Zope/Event

Modified Files:
      Tag: Zope3-Bangalore-TTW-Branch
	metaConfigure.py 
Log Message:
fixed DOS line endings

=== Zope3/lib/python/Zope/Event/metaConfigure.py 1.2.12.5 => 1.2.12.6 ===
--- Zope3/lib/python/Zope/Event/metaConfigure.py:1.2.12.5	Thu Oct 24 06:07:22 2002
+++ Zope3/lib/python/Zope/Event/metaConfigure.py	Wed Nov 13 15:23:27 2002
@@ -1,55 +1,55 @@
-##############################################################################
-#
-# 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
-from Interface import Interface
-
-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 = subscribeMany,
-            args = ('Interfaces', 'provideInterface',
-                    type.__module__+'.'+type.__name__, type)
-              )      
-        ]
+##############################################################################
+#
+# 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
+from Interface import Interface
+
+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 = subscribeMany,
+            args = ('Interfaces', 'provideInterface',
+                    type.__module__+'.'+type.__name__, type)
+              )      
+        ]