[Zope-CVS] CVS: Products/AdaptableStorage/zodb - consts.py:1.5

Shane Hathaway shane@zope.com
Tue, 14 Jan 2003 12:47:12 -0500


Update of /cvs-repository/Products/AdaptableStorage/zodb
In directory cvs.zope.org:/tmp/cvs-serv7737/zodb

Modified Files:
	consts.py 
Log Message:
Made it easier to turn on AdaptableStorage debugging.  Now it's an
environment variable, ZODB_MAPPER_DEBUG.


=== Products/AdaptableStorage/zodb/consts.py 1.4 => 1.5 ===
--- Products/AdaptableStorage/zodb/consts.py:1.4	Mon Dec  9 13:25:29 2002
+++ Products/AdaptableStorage/zodb/consts.py	Tue Jan 14 12:47:09 2003
@@ -16,7 +16,9 @@
 $Id$
 """
 
-DEBUG = 0
+import os
+
+DEBUG = not not os.environ.get('ZODB_MAPPER_DEBUG')
 
 SERIAL0 = '\0' * 8
 SERIAL1 = '\0' * 7 + '\001'