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
335cac9a
Commit
335cac9a
authored
Oct 01, 2003
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't start a monitor server if there is no emergency user.
parent
7f3cb450
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
lib/python/ZServer/datatypes.py
lib/python/ZServer/datatypes.py
+8
-5
No files found.
lib/python/ZServer/datatypes.py
View file @
335cac9a
...
...
@@ -137,9 +137,16 @@ class MonitorServerFactory(ServerFactory):
ServerFactory
.
__init__
(
self
,
section
.
address
)
def
create
(
self
):
password
=
self
.
getPassword
()
if
password
is
None
:
msg
=
(
'Monitor server not started because no emergency user '
'exists.'
)
import
zLOG
zLOG
.
LOG
(
"Zope"
,
zLOG
.
ERROR
,
msg
)
return
from
ZServer.medusa.monitor
import
secure_monitor_server
return
secure_monitor_server
(
hostname
=
self
.
host
,
port
=
self
.
port
,
password
=
self
.
getPassword
()
)
password
=
password
)
def
getPassword
(
self
):
# XXX This is really out of place; there should be a better
...
...
@@ -151,10 +158,6 @@ class MonitorServerFactory(ServerFactory):
pw
=
None
else
:
pw
=
emergency_user
.
_getPassword
()
if
pw
is
None
:
import
zLOG
zLOG
.
LOG
(
"Zope"
,
zLOG
.
WARNING
,
'Monitor server not started'
' because no emergency user exists.'
)
return
pw
...
...
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