[Zope-Checkins] CVS: Zope/lib/python/Zope/Startup - handlers.py:1.2.2.6 zopeschema.xml:1.2.2.8

Fred L. Drake, Jr. fred@zope.com
Mon, 24 Feb 2003 14:36:19 -0500


Update of /cvs-repository/Zope/lib/python/Zope/Startup
In directory cvs.zope.org:/tmp/cvs-serv23866/lib/python/Zope/Startup

Modified Files:
      Tag: new-install-branch
	handlers.py zopeschema.xml 
Log Message:
Add a port-base setting to the Zope schema, equivalent to using -P# option
to the z2.py script.


=== Zope/lib/python/Zope/Startup/handlers.py 1.2.2.5 => 1.2.2.6 ===
--- Zope/lib/python/Zope/Startup/handlers.py:1.2.2.5	Fri Feb 21 10:45:49 2003
+++ Zope/lib/python/Zope/Startup/handlers.py	Mon Feb 24 14:36:17 2003
@@ -172,7 +172,8 @@
         dnsresolver = self.get_dns_resolver(config)
         factory.prepare(config.ip_address or '',
                         dnsresolver, logger, "Zope",
-                        config.cgi_environment or {})
+                        config.cgi_environment or {},
+                        config.port_base)
 
 
 class DummyServerConfig:


=== Zope/lib/python/Zope/Startup/zopeschema.xml 1.2.2.7 => 1.2.2.8 ===
--- Zope/lib/python/Zope/Startup/zopeschema.xml:1.2.2.7	Fri Feb 21 10:47:41 2003
+++ Zope/lib/python/Zope/Startup/zopeschema.xml	Mon Feb 24 14:36:17 2003
@@ -146,6 +146,12 @@
   <section type="logger" name="trace"/>
 
   <multisection type="server" name="*" attribute="servers"/>
+  <key name="port-base" datatype="port-number" default="8000">
+    <description>
+      Base port number that gets added to the specific port numbers
+      specified for the individual servers.
+    </description>
+  </key>
 
   <multisection type="database" name="*" attribute="databases"/>