[Zope-Checkins] CVS: Zope/lib/python/Zope/Startup - datatypes.py:1.2.2.8

Fred L. Drake, Jr. fred@zope.com
Thu, 6 Mar 2003 13:27:35 -0500


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

Modified Files:
      Tag: new-install-branch
	datatypes.py 
Log Message:
Make sure cgi_environment is always set to a non-None value.


=== Zope/lib/python/Zope/Startup/datatypes.py 1.2.2.7 => 1.2.2.8 ===
--- Zope/lib/python/Zope/Startup/datatypes.py:1.2.2.7	Tue Feb 25 15:50:36 2003
+++ Zope/lib/python/Zope/Startup/datatypes.py	Thu Mar  6 13:27:34 2003
@@ -80,6 +80,8 @@
     swhome = os.path.dirname(os.path.dirname(here))
     section.softwarehome = swhome
     section.zopehome = os.path.dirname(os.path.dirname(swhome))
+    if section.cgi_environment is None:
+        section.cgi_environment = {}
     if section.clienthome is None:
         section.clienthome = os.path.join(section.instancehome, "var")
     # set up defaults for pid_filename and lock_filename if they're