[Zope-Checkins] CVS: Zope/lib/python - Globals.py:1.56
Chris McDonough
chrism@zope.com
Mon, 28 Jul 2003 00:07:46 -0400
Update of /cvs-repository/Zope/lib/python
In directory cvs.zope.org:/tmp/cvs-serv32342/lib/python
Modified Files:
Globals.py
Log Message:
Fix debug mode config file option (debug mode was always off before this fix).
=== Zope/lib/python/Globals.py 1.55 => 1.56 ===
--- Zope/lib/python/Globals.py:1.55 Tue Feb 11 13:16:10 2003
+++ Zope/lib/python/Globals.py Mon Jul 28 00:07:08 2003
@@ -44,17 +44,10 @@
INSTANCE_HOME = _cfg.instancehome
SOFTWARE_HOME = _cfg.softwarehome
ZOPE_HOME = _cfg.zopehome
-del _cfg, _getConfiguration
opened=[]
-# Check,if DEBUG variables are set
-DevelopmentMode=None
+DevelopmentMode=_cfg.debug_mode
-z1 = os.environ.get('Z_DEBUG_MODE','')
-z2 = os.environ.get('BOBO_DEBUG_MODE','')
+del _cfg, _getConfiguration
-if z1.lower() in ('yes','y') or z1.isdigit():
- DevelopmentMode=1
-elif z2.lower() in ('yes','y') or z2.isdigit():
- DevelopmentMode=1