[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services/ObjectHub - __init__.py:1.2
Gary Poster
gary@modernsongs.com
Tue, 29 Oct 2002 22:53:14 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Services/ObjectHub
In directory cvs.zope.org:/tmp/cvs-serv6191
Modified Files:
__init__.py
Log Message:
noticed a boo-boo in the last checkin messages ;-)
=== Zope3/lib/python/Zope/App/OFS/Services/ObjectHub/__init__.py 1.1 => 1.2 ===
--- Zope3/lib/python/Zope/App/OFS/Services/ObjectHub/__init__.py:1.1 Tue Oct 29 22:47:47 2002
+++ Zope3/lib/python/Zope/App/OFS/Services/ObjectHub/__init__.py Tue Oct 29 22:53:13 2002
@@ -29,8 +29,8 @@
arg = args[ix]
if isinstance(arg, int):
pass
- elif isinstance(arg, str):
- args[ix] = obHub.lookupHubId(locationAsUnicode(arg))
+ elif isinstance(arg, (str, tuple)):
+ args[ix] = obHub.getHubId(locationAsUnicode(arg))
elif isWrapper(arg):
args[ix] = getPhysicalPathString(arg)
return args