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
969753a7
Commit
969753a7
authored
Dec 21, 2003
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not configure a default set of servers if none are specified in the config file.
parent
6ec2ad15
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
17 deletions
+1
-17
lib/python/Zope/Startup/handlers.py
lib/python/Zope/Startup/handlers.py
+1
-17
No files found.
lib/python/Zope/Startup/handlers.py
View file @
969753a7
...
...
@@ -160,11 +160,7 @@ def root_handler(config):
# if no servers are defined, create default http server and ftp server
if
not
config
.
servers
:
import
ZServer.datatypes
config
.
servers
=
[
ZServer
.
datatypes
.
HTTPServerFactory
(
_DummyServerConfig
(
8080
)),
ZServer
.
datatypes
.
FTPServerFactory
(
_DummyServerConfig
(
8021
)),
]
config
.
servers
=
[]
# prepare servers:
for
factory
in
config
.
servers
:
...
...
@@ -179,18 +175,6 @@ def root_handler(config):
import
ZPublisher.HTTPRequest
ZPublisher
.
HTTPRequest
.
trusted_proxies
=
tuple
(
config
.
trusted_proxies
)
class
_DummyServerConfig
:
class
_Thing
:
pass
def
__init__
(
self
,
port
):
import
socket
self
.
address
=
self
.
_Thing
()
self
.
address
.
family
=
socket
.
AF_INET
self
.
address
.
address
=
''
,
port
self
.
force_connection_close
=
0
def
handleConfig
(
config
,
multihandler
):
handlers
=
{}
for
name
,
value
in
globals
().
items
():
...
...
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