[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/ApplicationControl/Views/Browser/tests - testRuntimeInfoView.py:1.4

Jim Fulton jim@zope.com
Fri, 20 Dec 2002 14:46:15 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/ApplicationControl/Views/Browser/tests
In directory cvs.zope.org:/tmp/cvs-serv13062/Zope/App/OFS/ApplicationControl/Views/Browser/tests

Modified Files:
	testRuntimeInfoView.py 
Log Message:
Refactored ApplicationControl so that the application controller is no
longer a root object. Rather, to avoid traversing a database object to
get to it, we create a separate RootFolder just so we can traverse it
to get to the application controller.

We (Guido and I) also renamed the global instance to have a name
starting with a lower case name. This caused the most file changes.

To do: rip out the application controller view registry in favor of
the actions menu.



=== Zope3/lib/python/Zope/App/OFS/ApplicationControl/Views/Browser/tests/testRuntimeInfoView.py 1.3 => 1.4 ===
--- Zope3/lib/python/Zope/App/OFS/ApplicationControl/Views/Browser/tests/testRuntimeInfoView.py:1.3	Wed Jul 17 12:54:16 2002
+++ Zope3/lib/python/Zope/App/OFS/ApplicationControl/Views/Browser/tests/testRuntimeInfoView.py	Fri Dec 20 14:45:44 2002
@@ -15,7 +15,7 @@
 from unittest import TestCase, TestSuite, main, makeSuite
 
 from Zope.App.OFS.ApplicationControl.ApplicationControl import \
-  ApplicationController
+  applicationController
 from Zope.App.OFS.ApplicationControl.IApplicationControl import \
   IApplicationControl
 from Zope.App.OFS.ApplicationControl.IRuntimeInfo import IRuntimeInfo
@@ -35,7 +35,7 @@
     def test_RuntimeInfoView(self):
         getService(None,'Adapters').provideAdapter(
               IApplicationControl, IRuntimeInfo, RuntimeInfo)
-        test_runtimeinfoview = self._TestView__newView(ApplicationController)
+        test_runtimeinfoview = self._TestView__newView(applicationController)
 
         test_format = test_runtimeinfoview.runtimeInfo()
         self.failUnless(isinstance(test_format, DictType))