[Zope3-checkins] CVS: Zope3/src/zope/app/event - subs.py:1.12
Albertas Agejevas
alga@codeworks.lt
Fri, 21 Mar 2003 10:29:38 -0500
Update of /cvs-repository/Zope3/src/zope/app/event
In directory cvs.zope.org:/tmp/cvs-serv2937/src/zope/app/event
Modified Files:
subs.py
Log Message:
One more zope.app.traversing renaming: locationAsUnicode() -> canonicalPath().
=== Zope3/src/zope/app/event/subs.py 1.11 => 1.12 ===
--- Zope3/src/zope/app/event/subs.py:1.11 Wed Mar 19 14:57:27 2003
+++ Zope3/src/zope/app/event/subs.py Fri Mar 21 10:29:07 2003
@@ -28,7 +28,7 @@
from zope.proxy.introspection import removeAllProxies
from zope.app.traversing import getPath
-from zope.app.traversing import locationAsUnicode, traverse
+from zope.app.traversing import canonicalPath, traverse
from zope.app.interfaces.event import IEvent, ISubscriber, ISubscribable
from zope.app.interfaces.event import ISubscribingAware
@@ -504,13 +504,13 @@
# the location the object is supposed to be at.
path = hub.getLocation(hubId)
# XXX remove this next line when objecthub is refactored
- path = locationAsUnicode(path)
+ path = canonicalPath(path)
except NotFoundError:
path = getPath(wrappedobj)
cleanobj = removeAllProxies(wrappedobj)
elif isinstance(clean_reference, StringTypes):
reftype = unicode
- path = locationAsUnicode(clean_reference)
+ path = canonicalPath(clean_reference)
try:
wrappedobj = traverse(context, path)
except NotFoundError: