[Zope-Checkins] CVS: Zope/lib/python/ZServer - datatypes.py:1.1.2.5
Fred L. Drake, Jr.
fred@zope.com
Mon, 24 Feb 2003 14:36:48 -0500
Update of /cvs-repository/Zope/lib/python/ZServer
In directory cvs.zope.org:/tmp/cvs-serv23866/lib/python/ZServer
Modified Files:
Tag: new-install-branch
datatypes.py
Log Message:
Add a port-base setting to the Zope schema, equivalent to using -P# option
to the z2.py script.
=== Zope/lib/python/ZServer/datatypes.py 1.1.2.4 => 1.1.2.5 ===
--- Zope/lib/python/ZServer/datatypes.py:1.1.2.4 Fri Feb 14 15:43:39 2003
+++ Zope/lib/python/ZServer/datatypes.py Mon Feb 24 14:36:16 2003
@@ -25,13 +25,15 @@
self.host, self.port = address
def prepare(self, defaulthost=None, dnsresolver=None, logger=None,
- module=None, env=None):
+ module=None, env=None, portbase=None):
if defaulthost is not None:
self._set_default_host(defaulthost)
self.dnsresolver = dnsresolver
self.logger = logger
self.module = module
self.cgienv = env
+ if portbase and self.port is not None:
+ self.port += portbase
def _set_default_host(self, host):
if not self.host: