[Zope3-checkins]
SVN: Zope3/trunk/src/zope/app/applicationcontrol/applicationcontrol.py
Use a tagged location instance rather than an instance of a
new class
Jim Fulton
jim at zope.com
Fri May 28 12:04:07 EDT 2004
Log message for revision 25089:
Use a tagged location instance rather than an instance of a new class
ro represent the application controller's root object.
-=-
Modified: Zope3/trunk/src/zope/app/applicationcontrol/applicationcontrol.py
===================================================================
--- Zope3/trunk/src/zope/app/applicationcontrol/applicationcontrol.py 2004-05-28 15:54:35 UTC (rev 25088)
+++ Zope3/trunk/src/zope/app/applicationcontrol/applicationcontrol.py 2004-05-28 16:04:07 UTC (rev 25089)
@@ -22,9 +22,6 @@
import zope.interface
import zope.app.traversing.interfaces
-class ApplicationControllerRoot(Location):
- zope.interface.implements(zope.app.traversing.interfaces.IContainmentRoot)
-
class ApplicationControl(Location):
zope.interface.implements(IApplicationControl)
@@ -35,8 +32,15 @@
def getStartTime(self):
return self.start_time
+
+applicationControllerRoot = Location()
+zope.interface.directlyProvides(
+ applicationControllerRoot,
+ zope.app.traversing.interfaces.IContainmentRoot,
+ )
+applicationControllerRoot = ProxyFactory(applicationControllerRoot,
+ NamesChecker("__class__"))
+
applicationController = ApplicationControl()
-applicationControllerRoot = ProxyFactory(ApplicationControllerRoot(),
- NamesChecker("__class__"))
applicationController.__parent__ = applicationControllerRoot
applicationController.__name__ = '++etc++process'
More information about the Zope3-Checkins
mailing list