[Zope-CVS] CVS: Products/Ape/lib/apelib/fs - connection.py:1.11
Shane Hathaway
shane at zope.com
Thu Mar 25 22:58:52 EST 2004
Update of /cvs-repository/Products/Ape/lib/apelib/fs
In directory cvs.zope.org:/tmp/cvs-serv32726/fs
Modified Files:
connection.py
Log Message:
Added an env. var for debugging fs connections.
=== Products/Ape/lib/apelib/fs/connection.py 1.10 => 1.11 ===
--- Products/Ape/lib/apelib/fs/connection.py:1.10 Sat Mar 20 01:34:23 2004
+++ Products/Ape/lib/apelib/fs/connection.py Thu Mar 25 22:58:50 2004
@@ -16,6 +16,8 @@
$Id$
"""
+import os
+
from apelib.core.interfaces import ITPCConnection, ISourceRepository, LoadError
from interfaces import IFSReader, IFSWriter, FSReadError, FSWriteError
@@ -23,7 +25,7 @@
from annotated import AnnotatedFilesystem, object_names_ann
from oidtable import OIDTable
-DEBUG = 0
+DEBUG = os.environ.get('APE_DEBUG_FS')
# For a node_type_ann, the value is 'f' (file) or 'd' (directory)
@@ -634,7 +636,7 @@
if DEBUG:
tossing = self._pending.keys()
tossing.sort()
- print "tossing: %s" % ', '.join(tossing)
+ print "fs: tossing %s" % ', '.join(tossing)
break
More information about the Zope-CVS
mailing list