[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/ApplicationControl - ApplicationControl.py:1.4 IApplicationControl.py:1.3 meta.zcml:1.2 metaConfigure.py:NONE
Jim Fulton
jim@zope.com
Fri, 20 Dec 2002 18:15:34 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/ApplicationControl
In directory cvs.zope.org:/tmp/cvs-serv8478
Modified Files:
ApplicationControl.py IApplicationControl.py meta.zcml
Removed Files:
metaConfigure.py
Log Message:
Refactored the application controller to use the views menu rather
than a specialized view plugin mechanism.
Got rid of the old main page, which now does nothing and made the
process info view the default.
=== Zope3/lib/python/Zope/App/OFS/ApplicationControl/ApplicationControl.py 1.3 => 1.4 ===
--- Zope3/lib/python/Zope/App/OFS/ApplicationControl/ApplicationControl.py:1.3 Fri Dec 20 14:45:44 2002
+++ Zope3/lib/python/Zope/App/OFS/ApplicationControl/ApplicationControl.py Fri Dec 20 18:15:03 2002
@@ -28,7 +28,6 @@
def __init__(self):
self.start_time = time.time()
- self._views = []
############################################################
# Implementation methods for interface
@@ -37,14 +36,6 @@
def getStartTime(self):
'See Zope.App.OFS.ApplicationControl.IApplicationControl.IApplicationControl'
return self.start_time
-
- def registerView(self, name, title):
- 'See Zope.App.OFS.ApplicationControl.IApplicationControl.IApplicationControl'
- self._views.append({'name': name, 'title': title})
-
- def getListOfViews(self):
- 'See Zope.App.OFS.ApplicationControl.IApplicationControl.IApplicationControl'
- return tuple(self._views)
#
############################################################
=== Zope3/lib/python/Zope/App/OFS/ApplicationControl/IApplicationControl.py 1.2 => 1.3 ===
--- Zope3/lib/python/Zope/App/OFS/ApplicationControl/IApplicationControl.py:1.2 Mon Jun 10 19:27:51 2002
+++ Zope3/lib/python/Zope/App/OFS/ApplicationControl/IApplicationControl.py Fri Dec 20 18:15:03 2002
@@ -21,13 +21,6 @@
""" """
def getStartTime():
- """Return the time when the ApplicationControl object has been instanciated
+ """Return the time the application started
+
in seconds since the epoch"""
-
- def registerView(name, title):
- """Register a view called <name> to be displayed in ApplicationControl
- """
-
- def getListOfViews():
- """Return a sequence containing dictionaries with the registered views' names
- and titles mapped with the keys 'name' and 'title'"""
=== Zope3/lib/python/Zope/App/OFS/ApplicationControl/meta.zcml 1.1 => 1.2 ===
--- Zope3/lib/python/Zope/App/OFS/ApplicationControl/meta.zcml:1.1 Mon Jun 17 14:31:25 2002
+++ Zope3/lib/python/Zope/App/OFS/ApplicationControl/meta.zcml Fri Dec 20 18:15:03 2002
@@ -1,11 +1,4 @@
<zopeConfigure xmlns='http://namespaces.zope.org/zope'>
- <!-- Zope.App.OFS.ApplicationControl -->
- <directives namespace="http://namespaces.zope.org/application-control">
- <directive name="registerView"
- attributes="name title"
- handler=".metaConfigure.registerView" />
- </directives>
-
<include package=".ServerControl" file="meta.zcml" />
</zopeConfigure>
=== Removed File Zope3/lib/python/Zope/App/OFS/ApplicationControl/metaConfigure.py ===