Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
9cf1bf6a
Commit
9cf1bf6a
authored
Feb 04, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Zope, Python, and platform information methods.
parent
5db3d8c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
6 deletions
+21
-6
lib/python/App/ApplicationManager.py
lib/python/App/ApplicationManager.py
+12
-1
lib/python/App/cpContents.dtml
lib/python/App/cpContents.dtml
+9
-5
No files found.
lib/python/App/ApplicationManager.py
View file @
9cf1bf6a
...
...
@@ -83,7 +83,7 @@
#
##############################################################################
__doc__
=
"""System management components"""
__version__
=
'$Revision: 1.3
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
9
$'
[
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
},
...
...
lib/python/App/cpContents.dtml
View file @
9cf1bf6a
...
...
@@ -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 "Shutdown" 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 "Shutdown" to shutdown
the <em>Zope</em> process. <em>Zope</em> be restarted on the next web request.
<BR><INPUT TYPE="SUBMIT" VALUE="Shutdown">
</FORM>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment