[Zope-Checkins] CVS: Zope/lib/python/App - config.py:1.7

Chris McDonough chrism at zopemafia.com
Fri Dec 19 23:46:15 EST 2003


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

Modified Files:
	config.py 
Log Message:
Dont try to set attributes on cfg in setConfiguration if we're trying to clear the configuration by passing it None.


=== Zope/lib/python/App/config.py 1.6 => 1.7 ===
--- Zope/lib/python/App/config.py:1.6	Fri Oct  3 10:29:03 2003
+++ Zope/lib/python/App/config.py	Fri Dec 19 23:46:14 2003
@@ -41,6 +41,9 @@
     global _config
     _config = cfg
 
+    if cfg is None:
+        return
+	
     from App import FindHomes
     import __builtin__
     __builtin__.CLIENT_HOME = FindHomes.CLIENT_HOME = cfg.clienthome




More information about the Zope-Checkins mailing list