[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Container - DependencyChecker.py:1.3
Jim Fulton
jim@zope.com
Sat, 30 Nov 2002 13:32:15 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Container
In directory cvs.zope.org:/tmp/cvs-serv11263/lib/python/Zope/App/OFS/Container
Modified Files:
DependencyChecker.py
Log Message:
Renamed DependencyFramework.Exception module to DependencyFramework.Exceptions.
=== Zope3/lib/python/Zope/App/OFS/Container/DependencyChecker.py 1.2 => 1.3 ===
--- Zope3/lib/python/Zope/App/OFS/Container/DependencyChecker.py:1.2 Mon Nov 18 18:47:58 2002
+++ Zope3/lib/python/Zope/App/OFS/Container/DependencyChecker.py Sat Nov 30 13:32:14 2002
@@ -17,9 +17,10 @@
"""
from Zope.ComponentArchitecture import queryAdapter
from Zope.App.DependencyFramework.IDependable import IDependable
-from Zope.App.DependencyFramework.Exception import DependencyError
+from Zope.App.DependencyFramework.Exceptions import DependencyError
from Zope.Event.ISubscriber import ISubscriber
from Zope.Proxy.ProxyIntrospection import removeAllProxies
+
class DependencyChecker:
"""Checking dependency while deleting object
"""
@@ -34,9 +35,7 @@
if dependency is not None:
if dependency.dependents():
raise DependencyError(" Removal of object dependable")
-
-
-
+
CheckDependency = DependencyChecker()