[Zope3-checkins] CVS: Zope3/src/zope/app/applicationcontrol - applicationcontrol.py:1.6

Jim Fulton jim at zope.com
Sun Sep 21 13:30:16 EDT 2003


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

Modified Files:
	applicationcontrol.py 
Log Message:
Made application-controllers locations.

Changed root folders to be Folders rather than RootFolders. 
The RootFolder class is now gone. Root folders are just Folder
instances that provide IRootFolder.


=== Zope3/src/zope/app/applicationcontrol/applicationcontrol.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/applicationcontrol/applicationcontrol.py:1.5	Thu Jul 31 17:37:18 2003
+++ Zope3/src/zope/app/applicationcontrol/applicationcontrol.py	Sun Sep 21 13:30:16 2003
@@ -16,13 +16,14 @@
 $Id$"""
 
 from zope.app.interfaces.applicationcontrol import IApplicationControl
-from zope.app.content.folder import RootFolder
+from zope.app.content.folder import rootFolder
 from zope.security.checker import ProxyFactory, NamesChecker
 from zope.interface import implements
+from zope.app.location import Location
 
 import time
 
-class ApplicationControl:
+class ApplicationControl(Location):
 
     implements(IApplicationControl)
 
@@ -33,5 +34,7 @@
         return self.start_time
 
 applicationController = ApplicationControl()
-applicationControllerRoot = ProxyFactory(RootFolder(),
+applicationControllerRoot = ProxyFactory(rootFolder(),
                                          NamesChecker("__class__"))
+applicationController.__parent__ = applicationControllerRoot
+applicationController.__name__ = '++etc++process'




More information about the Zope3-Checkins mailing list