[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/applicationcontrol/applicationcontrol.py Changed the appliation folder to use it's own root object to avoid an

Jim Fulton jim at zope.com
Thu May 27 18:16:27 EDT 2004


Log message for revision 25070:
Changed the appliation folder to use it's own root object to avoid an
unwanted dependency on zope.app.folder and to avoid a source of
circular imports.



-=-
Modified: Zope3/trunk/src/zope/app/applicationcontrol/applicationcontrol.py
===================================================================
--- Zope3/trunk/src/zope/app/applicationcontrol/applicationcontrol.py	2004-05-27 20:48:53 UTC (rev 25069)
+++ Zope3/trunk/src/zope/app/applicationcontrol/applicationcontrol.py	2004-05-27 22:16:27 UTC (rev 25070)
@@ -15,18 +15,19 @@
 
 $Id$"""
 
+from zope.app.applicationcontrol.interfaces import IApplicationControl
+from zope.app.location import Location
+from zope.security.checker import ProxyFactory, NamesChecker
 import time
+import zope.interface
+import zope.app.traversing.interfaces
 
-from zope.security.checker import ProxyFactory, NamesChecker
-from zope.interface import implements
+class ApplicationControllerRoot(Location):
+    zope.interface.implements(zope.app.traversing.interfaces.IContainmentRoot)
 
-from zope.app.location import Location
-from zope.app.folder import rootFolder
-from zope.app.applicationcontrol.interfaces import IApplicationControl
-
 class ApplicationControl(Location):
 
-    implements(IApplicationControl)
+    zope.interface.implements(IApplicationControl)
 
     def __init__(self):
         self.start_time = time.time()
@@ -35,7 +36,7 @@
         return self.start_time
 
 applicationController = ApplicationControl()
-applicationControllerRoot = ProxyFactory(rootFolder(),
+applicationControllerRoot = ProxyFactory(ApplicationControllerRoot(),
                                          NamesChecker("__class__"))
 applicationController.__parent__ = applicationControllerRoot
 applicationController.__name__ = '++etc++process'




More information about the Zope3-Checkins mailing list