[Zope3-checkins] CVS: Zope3/src/zope/app/container - dependency.py:1.5
Albertas Agejevas
alga@codeworks.lt
Fri, 21 Mar 2003 10:29:37 -0500
Update of /cvs-repository/Zope3/src/zope/app/container
In directory cvs.zope.org:/tmp/cvs-serv2937/src/zope/app/container
Modified Files:
dependency.py
Log Message:
One more zope.app.traversing renaming: locationAsUnicode() -> canonicalPath().
=== Zope3/src/zope/app/container/dependency.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/container/dependency.py:1.4 Wed Mar 19 14:57:25 2003
+++ Zope3/src/zope/app/container/dependency.py Fri Mar 21 10:29:07 2003
@@ -20,7 +20,7 @@
from zope.app.interfaces.dependable import DependencyError
from zope.app.interfaces.event import ISubscriber
from zope.proxy.introspection import removeAllProxies
-from zope.app.traversing import getPath, locationAsUnicode
+from zope.app.traversing import getPath, canonicalPath
class DependencyChecker:
"""Checking dependency while deleting object
@@ -37,7 +37,7 @@
dependents = dependency.dependents()
if dependents:
objectpath = getPath(event.object)
- dependents = map(locationAsUnicode, dependents)
+ dependents = map(canonicalPath, dependents)
raise DependencyError("Removal of object (%s)"
" which has dependents (%s)"
% (objectpath,