Commit 9cf1bf6a authored by Jim Fulton's avatar Jim Fulton

Added Zope, Python, and platform information methods.

parent 5db3d8c6
......@@ -83,7 +83,7 @@
#
##############################################################################
__doc__="""System management components"""
__version__='$Revision: 1.38 $'[11:-2]
__version__='$Revision: 1.39 $'[11:-2]
import sys,os,time,string,Globals, Acquisition
......@@ -124,6 +124,17 @@ class ApplicationManager(Folder,CacheManager):
manage=manage_main=HTMLFile('cpContents', globals())
manage_undoForm=HTMLFile('undo', globals())
def version_txt(self):
if not hasattr(self, '_v_version_txt'):
try: self._v_version_txt=open(
os.path.join(SOFTWARE_HOME,'version.txt')).read()
except: self._v_version_txt='(unreleased version)'
return self._v_version_txt
def sys_version(self): return sys.version
def sys_platform(self): return sys.platform
_objects=(
{'id': 'Database',
'meta_type': Database.meta_type},
......
......@@ -4,12 +4,16 @@
</HEAD>
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">
<!--#var manage_tabs-->
<FORM ACTION="manage_shutdown" METHOD="POST">
The Control Panel provides access to system management functions,
such as database and product management. The system has been running
(with a process ID of <!--#var process_id-->) for <!--#var
process_time-->. Click &quot;Shutdown&quot; to shutdown the Zope
process. It will be restarted on the next web request.
such as database and product management.
<FORM ACTION="manage_shutdown" METHOD="POST">
You are running <em>Zope</em> version: <!--#var version_txt-->,
on Python <!--#var sys_version--> on <!--#var sys_platform-->.
<em>Zope</em> has been running (with a process ID of <!--#var process_id-->)
for <!--#var process_time-->. Click &quot;Shutdown&quot; to shutdown
the <em>Zope</em> process. <em>Zope</em> be restarted on the next web request.
<BR><INPUT TYPE="SUBMIT" VALUE="Shutdown">
</FORM>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment