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

Fred L. Drake, Jr. fred at zope.com
Thu Aug 21 16:22:39 EDT 2003


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

Modified Files:
	dependency.py 
Log Message:
fix up imports to avoid NameError


=== Zope3/src/zope/app/container/dependency.py 1.9 => 1.10 ===
--- Zope3/src/zope/app/container/dependency.py:1.9	Sun Aug 17 02:06:21 2003
+++ Zope3/src/zope/app/container/dependency.py	Thu Aug 21 15:22:38 2003
@@ -15,7 +15,7 @@
 
 $Id$
 """
-from zope.component import queryAdapter
+from zope.app import zapi
 from zope.app.interfaces.dependable import IDependable
 from zope.app.interfaces.dependable import DependencyError
 from zope.app.interfaces.event import ISubscriber
@@ -32,11 +32,11 @@
 
     def notify(self, event):
         object = removeAllProxies(event.object)
-        dependency = queryAdapter(object, IDependable)
+        dependency = zapi.queryAdapter(object, IDependable)
         if dependency is not None:
             dependents = dependency.dependents()
             if dependents:
-                objectpath = getPath(event.object)
+                objectpath = zapi.getPath(event.object)
                 raise DependencyError("Removal of object (%s)"
                                       " which has dependents (%s)"
                                       % (objectpath,




More information about the Zope3-Checkins mailing list