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
e3d4d9d4
Commit
e3d4d9d4
authored
May 01, 2006
by
Lennart Regebro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added an error message for misconfiguration.
parent
f6ae33b4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
lib/python/Zope2/Startup/__init__.py
lib/python/Zope2/Startup/__init__.py
+5
-1
No files found.
lib/python/Zope2/Startup/__init__.py
View file @
e3d4d9d4
...
...
@@ -116,9 +116,13 @@ class ZopeStarter:
from
App.config
import
getConfiguration
config
=
getConfiguration
()
import
ZServer
if
config
.
twisted_servers
and
config
.
servers
:
raise
ZConfig
.
ConfigurationError
(
"You can't run both ZServer servers and twisted servers."
)
if
config
.
twisted_servers
:
if
not
_use_twisted
:
raise
ImportError
(
"You do not have twisted installed."
)
raise
ZConfig
.
ConfigurationError
(
"You do not have twisted installed."
)
twisted
.
internet
.
reactor
.
run
()
# Storing the exit code in the ZServer even for twisted,
# but hey, it works...
...
...
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