[Zope-Checkins] CVS: Zope/lib/python/Zope/Startup -
handlers.py:1.6.2.6
Chris McDonough
chrism at zopemafia.com
Sun Dec 21 18:05:02 EST 2003
Update of /cvs-repository/Zope/lib/python/Zope/Startup
In directory cvs.zope.org:/tmp/cvs-serv10921
Modified Files:
Tag: Zope-2_7-branch
handlers.py
Log Message:
Do not configure a default set of servers if none are specified in the config file.
=== Zope/lib/python/Zope/Startup/handlers.py 1.6.2.5 => 1.6.2.6 ===
--- Zope/lib/python/Zope/Startup/handlers.py:1.6.2.5 Tue Oct 21 10:40:32 2003
+++ Zope/lib/python/Zope/Startup/handlers.py Sun Dec 21 18:05:01 2003
@@ -153,13 +153,8 @@
L.append(d)
Products.__path__[:] = L
- # 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:
@@ -173,18 +168,6 @@
if config.trusted_proxies:
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 = {}
More information about the Zope-Checkins
mailing list