[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/services - hub.py:1.1.2.3

Guido van Rossum guido@python.org
Mon, 23 Dec 2002 17:38:45 -0500


Update of /cvs-repository/Zope3/src/zope/app/interfaces/services
In directory cvs.zope.org:/tmp/cvs-serv21902

Modified Files:
      Tag: NameGeddon-branch
	hub.py 
Log Message:
Fix definition order.


=== Zope3/src/zope/app/interfaces/services/hub.py 1.1.2.2 => 1.1.2.3 ===
--- Zope3/src/zope/app/interfaces/services/hub.py:1.1.2.2	Mon Dec 23 15:49:38 2002
+++ Zope3/src/zope/app/interfaces/services/hub.py	Mon Dec 23 17:38:45 2002
@@ -11,17 +11,35 @@
 # FOR A PARTICULAR PURPOSE.
 # 
 ##############################################################################
-"""
+"""Object hub interfaces.
 
-Revision information:
 $Id$
 """
 
+from zope.interface import Attribute
+
+from zope.interfaces.event import IEventChannel
+from zope.interfaces.event import IEvent
 
 
 class ObjectHubError(Exception):
     pass
 
+
+class IHubEventChannel(IEventChannel):
+    """Event channel that filters hub events.
+
+    It typically lies between the ObjectHub service and an index, so that
+    only certain content gets indexed. The extra iterObjectRegistrations
+    method is needed for bootstrapping the index with the appropriate objects.
+    """
+
+    def iterObjectRegistrations():
+        """Returns an iterator of the object registrations.
+
+        An object registration is a tuple (location, hubid, wrapped_object).
+        """
+
 class IObjectHub(IHubEventChannel):
     """ObjectHub.
     
@@ -154,15 +172,6 @@
         """
 
 
-
-"""
-
-Revision information:
-$Id$
-"""
-from zope.interfaces.event import IEvent
-from zope.interface import Attribute
-
 class IHubEvent(IEvent):
     """Internal Object Hub Event : something has happened to an object for
        which there is a hub id.
@@ -205,27 +214,3 @@
 
 class IObjectRemovedHubEvent(IObjectUnregisteredHubEvent):
     """An object with a hub id has been removed and unregistered."""
-
-
-"""
-
-Revision information:
-$Id$
-"""
-
-from zope.interfaces.event import IEventChannel
-
-class IHubEventChannel(IEventChannel):
-    """Event channel that filters hub events.
-
-    It typically lies between the ObjectHub service and an index, so that
-    only certain content gets indexed. The extra iterObjectRegistrations
-    method is needed for bootstrapping the index with the appropriate objects.
-    """
-
-    def iterObjectRegistrations():
-        """Returns an iterator of the object registrations.
-
-        An object registration is a tuple (location, hubid, wrapped_object).
-        """
-