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
f535cae5
Commit
f535cae5
authored
Feb 14, 2001
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merged 1.64.4.1.2.1.
parent
095bfb83
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
lib/python/App/ApplicationManager.py
lib/python/App/ApplicationManager.py
+15
-1
No files found.
lib/python/App/ApplicationManager.py
View file @
f535cae5
...
...
@@ -83,7 +83,7 @@
#
##############################################################################
__doc__
=
"""System management components"""
__version__
=
'$Revision: 1.
69
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
70
$'
[
11
:
-
2
]
import
sys
,
os
,
time
,
string
,
Globals
,
Acquisition
,
os
,
Undo
...
...
@@ -98,6 +98,8 @@ from App.Dialogs import MessageDialog
from
Product
import
ProductFolder
from
version_txt
import
version_txt
from
cStringIO
import
StringIO
from
AccessControl
import
getSecurityManager
import
zLOG
try
:
import
thread
except
:
get_ident
=
lambda
:
0
...
...
@@ -374,6 +376,12 @@ class ApplicationManager(Folder,CacheManager):
manage_restartable
=
1
def
manage_restart
(
self
,
URL1
):
"""Shut down the application"""
try
:
user
=
'"%s"'
%
getSecurityManager
().
getUser
().
getUserName
()
except
:
user
=
'unknown user'
zLOG
.
LOG
(
"ApplicationManager"
,
zLOG
.
INFO
,
"Restart requested by %s"
%
user
)
for
db
in
Globals
.
opened
:
db
.
close
()
raise
SystemExit
,
"""<html>
<head><meta HTTP-EQUIV=REFRESH CONTENT="5; URL=%s/manage_main">
...
...
@@ -384,6 +392,12 @@ class ApplicationManager(Folder,CacheManager):
def
manage_shutdown
(
self
):
"""Shut down the application"""
try
:
user
=
'"%s"'
%
getSecurityManager
().
getUser
().
getUserName
()
except
:
user
=
'unknown user'
zLOG
.
LOG
(
"ApplicationManager"
,
zLOG
.
INFO
,
"Shutdown requested by %s"
%
user
)
for
db
in
Globals
.
opened
:
db
.
close
()
sys
.
exit
(
0
)
...
...
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