[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/ApplicationControl/ServerControl/Views/Browser - ServerControlView.py:1.3
Christian Theune
ct@gocept.com
Sat, 7 Dec 2002 12:16:03 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/ApplicationControl/ServerControl/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv4330/ServerControl/Views/Browser
Modified Files:
ServerControlView.py
Log Message:
Changed behaviour when failing to acquire information about runtime.
=== Zope3/lib/python/Zope/App/OFS/ApplicationControl/ServerControl/Views/Browser/ServerControlView.py 1.2 => 1.3 ===
--- Zope3/lib/python/Zope/App/OFS/ApplicationControl/ServerControl/Views/Browser/ServerControlView.py:1.2 Mon Jun 10 19:27:53 2002
+++ Zope3/lib/python/Zope/App/OFS/ApplicationControl/ServerControl/Views/Browser/ServerControlView.py Sat Dec 7 12:16:02 2002
@@ -24,8 +24,11 @@
class ServerControlView(BrowserView):
def serverControl(self):
+ # XXX Refactor alarm! This is *required*. We really
+ # rely on it beeing there. If it was a utility,
+ # we wouldn't care, if the ServerControl is gone,
+ # but actually we do. Maybe this should be a service ...
return getUtility(self.context, IServerControl)
- # XXX what are we going to do if this fails???
def action(self):
"""Do the shutdown/restart!"""