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
ae2c1d38
Commit
ae2c1d38
authored
Aug 13, 2016
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move _requestShutdown logic into ZServer.
parent
5a54bdff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
src/ZPublisher/HTTPResponse.py
src/ZPublisher/HTTPResponse.py
+3
-8
No files found.
src/ZPublisher/HTTPResponse.py
View file @
ae2c1d38
...
...
@@ -556,20 +556,15 @@ class HTTPResponse(BaseResponse):
return
str
(
location
)
# The following two methods are part of a private protocol with
the
#
publisher for handling fatal import errors and TTW shutdown request
s.
# The following two methods are part of a private protocol with
#
ZServer for handling fatal import error
s.
_shutdown_flag
=
None
def
_requestShutdown
(
self
,
exitCode
=
0
):
""" Request that the server shut down with exitCode after fulfilling
the current request.
"""
self
.
_shutdown_flag
=
1
try
:
from
ZServer.Zope2.Startup
import
config
config
.
ZSERVER_EXIT_CODE
=
exitCode
except
ImportError
:
pass
self
.
_shutdown_flag
=
exitCode
def
_shutdownRequested
(
self
):
""" Returns true if this request requested a server shutdown.
...
...
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