[Zope3-checkins] CVS: Zope3/src/zope/app/container - dependency.py:1.4

Albertas Agejevas alga@codeworks.lt
Wed, 19 Mar 2003 14:57:57 -0500


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

Modified Files:
	dependency.py 
Log Message:
Renamed getPgysicalPathString() to getPath().

Got rid of getPhysicalPath() (which used to return a tuple) by replacing it
by getPath().


=== Zope3/src/zope/app/container/dependency.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/container/dependency.py:1.3	Mon Dec 30 09:02:54 2002
+++ Zope3/src/zope/app/container/dependency.py	Wed Mar 19 14:57:25 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 getPhysicalPathString, locationAsUnicode
+from zope.app.traversing import getPath, locationAsUnicode
 
 class DependencyChecker:
     """Checking dependency  while deleting object
@@ -36,7 +36,7 @@
         if dependency is not None:
             dependents = dependency.dependents()
             if dependents:
-                objectpath = getPhysicalPathString(event.object)
+                objectpath = getPath(event.object)
                 dependents = map(locationAsUnicode, dependents)
                 raise DependencyError("Removal of object (%s)"
                                       " which has dependents (%s)"