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

Guido van Rossum guido@python.org
Mon, 23 Dec 2002 18:04:44 -0500


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

Modified Files:
      Tag: NameGeddon-branch
	hub.py 
Log Message:
Some cleanup.


=== Zope3/src/zope/app/services/hub.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/services/hub.py:1.1.2.1	Mon Dec 23 14:32:22 2002
+++ Zope3/src/zope/app/services/hub.py	Mon Dec 23 18:04:43 2002
@@ -11,22 +11,41 @@
 # FOR A PARTICULAR PURPOSE.
 # 
 ##############################################################################
-"""
+"""Object hub implementation.
 
-Revision information:
 $Id$
 """
 
+from __future__ import generators
+
 __metaclass__ = type
 
+import random
+
+from zodb.btrees.IOBTree import IOBTree
+from zodb.btrees.OIBTree import OIBTree
+
+from zope.app.traversing import getPhysicalPath
+from zope.app.traversing import locationAsTuple, locationAsUnicode
+from zope.component import getAdapter
+from zope.exceptions import NotFoundError
+from zope.proxy.context.context import ContextWrapper
+from zope.proxy.context.context import isWrapper
+from zope.proxy.context import ContextMethod
+from zope.proxy.introspection import removeAllProxies
+
+from zope.app.interfaces.traversing.traverser import ITraverser
+from zope.app.interfaces.event import IObjectRemovedEvent, IObjectEvent
+from zope.app.interfaces.event import IObjectMovedEvent, IObjectCreatedEvent
+from zope.app.interfaces.event import IObjectModifiedEvent
+from zope.app.interfaces.services.hub import IObjectHub, ObjectHubError
+from zope.app.services.event import ProtoServiceEventChannel
 from zope.app.interfaces.services.hub import IObjectRegisteredHubEvent
 from zope.app.interfaces.services.hub import IObjectUnregisteredHubEvent
 from zope.app.interfaces.services.hub import IObjectModifiedHubEvent
 from zope.app.interfaces.services.hub import IObjectMovedHubEvent
 from zope.app.interfaces.services.hub import IObjectRemovedHubEvent
-from Zope.App.Traversing import traverse
 from zope.app.interfaces.traversing.traverser import ITraverser
-from zope.component import getAdapter
 
 class HubEvent:
     """Convenient mix-in for HubEvents"""
@@ -134,42 +153,6 @@
         self.object = object
         self.location = location
 
-
-"""
-
-Revision information:
-$Id$
-"""
-
-from __future__ import generators
-from zope.app.services.event \
-     import ProtoServiceEventChannel
-
-from zope.app.interfaces.services.hub import IObjectHub, ObjectHubError
-
-
-
-
-
-
-from zope.exceptions import NotFoundError
-
-from zope.app.interfaces.event import IObjectRemovedEvent, IObjectEvent
-from zope.app.interfaces.event import IObjectMovedEvent, IObjectCreatedEvent
-from zope.app.interfaces.event import IObjectModifiedEvent
-
-from zodb.btrees.IOBTree import IOBTree
-from zodb.btrees.OIBTree import OIBTree
-from zope.proxy.context import ContextMethod
-from zope.proxy.context.context import isWrapper
-from zope.app.interfaces.traversing.traverser import ITraverser
-from Zope.App.Traversing import getPhysicalPath
-from Zope.App.Traversing import locationAsTuple, locationAsUnicode
-from zope.proxy.introspection import removeAllProxies
-from zope.proxy.context.context import ContextWrapper
-from zope.component import getAdapter
-
-import random
 
 def randid():
     # Return a random number between -2*10**9 and 2*10**9, but not 0.