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
dbc804e9
Commit
dbc804e9
authored
Apr 13, 2003
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reenable web-controlled restart under the zdctl regime.
parent
fd4fad51
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
lib/python/App/ApplicationManager.py
lib/python/App/ApplicationManager.py
+2
-5
lib/python/Zope/Startup/zopectl.py
lib/python/Zope/Startup/zopectl.py
+5
-0
No files found.
lib/python/App/ApplicationManager.py
View file @
dbc804e9
...
...
@@ -12,7 +12,7 @@
##############################################################################
__doc__
=
"""System management components"""
__version__
=
'$Revision: 1.8
7
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.8
8
$'
[
11
:
-
2
]
import
sys
,
os
,
time
,
Globals
,
Acquisition
,
os
,
Undo
from
Globals
import
DTMLFile
...
...
@@ -318,10 +318,7 @@ class ApplicationManager(Folder,CacheManager):
if
s
>=
1048576.0
:
return
'%.1fM'
%
(
s
/
1048576.0
)
return
'%.1fK'
%
(
s
/
1024.0
)
if
hasattr
(
sys
,
'ZMANAGED'
):
if
os
.
environ
.
has_key
(
'ZMANAGED'
):
manage_restartable
=
1
def
manage_restart
(
self
,
URL1
):
"""Shut down the application"""
...
...
lib/python/Zope/Startup/zopectl.py
View file @
dbc804e9
...
...
@@ -117,6 +117,11 @@ class ZopeCmd(ZDCmd):
args
=
[
opt
,
svalue
]
return
args
def
do_start
(
self
,
arg
):
# signal to Zope that it is being managed
#(to indicate it's web-restartable)
os
.
putenv
(
'ZMANAGED'
,
'1'
)
ZDCmd
.
do_start
(
self
,
arg
)
def
main
(
args
=
None
):
# This is exactly like zdctl.main(), but uses ZopeCtlOptions and
...
...
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