[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services/ObjectHub - __init__.py:1.3

Gary Poster gary@modernsongs.com
Tue, 29 Oct 2002 22:59:48 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Services/ObjectHub
In directory cvs.zope.org:/tmp/cvs-serv6826

Modified Files:
	__init__.py 
Log Message:
eh--on second thought, this was a broken and fairly useless experiment of mine that shouldn't have been checked in in the first place.  How about a nice simple __init__, everyone?


=== Zope3/lib/python/Zope/App/OFS/Services/ObjectHub/__init__.py 1.2 => 1.3 ===
--- Zope3/lib/python/Zope/App/OFS/Services/ObjectHub/__init__.py:1.2	Tue Oct 29 22:53:13 2002
+++ Zope3/lib/python/Zope/App/OFS/Services/ObjectHub/__init__.py	Tue Oct 29 22:59:48 2002
@@ -11,26 +11,4 @@
 # FOR A PARTICULAR PURPOSE.
 # 
 ##############################################################################
-"""Local Object Hub"""
-
-from Zope.ComponentArchitecture import getService
-from Zope.Proxy.ContextWrapper import isWrapper
-from Zope.App.Traversing import getPhysicalPathString
-from Zope.App.Traversing import locationAsUnicode
-
-def normalizeToHubIds(context, *args):
-    """given a context and any number of hub ids, physical paths,
-    or wrapped objects, returns a normalized list of each item as hubid
-    using the ObjectHub closest to the context.
-    """
-    obHub = getService(context, "ObjectHub")
-    args = list(args)
-    for ix in len(args):
-        arg = args[ix]
-        if isinstance(arg, int):
-            pass
-        elif isinstance(arg, (str, tuple)):
-            args[ix] = obHub.getHubId(locationAsUnicode(arg))
-        elif isWrapper(arg):
-            args[ix] = getPhysicalPathString(arg)
-    return args
\ No newline at end of file
+"""Local Object Hub"""
\ No newline at end of file