[CMF-checkins] CVS: CMF - DirectoryView.py:1.9

tseaver@digicool.com tseaver@digicool.com
Sun, 3 Jun 2001 22:31:03 -0400 (EDT)


Update of /cvs-repository/CMF/CMFCore
In directory korak.digicool.com:/tmp/cvs-serv2264

Modified Files:
	DirectoryView.py 
Log Message:
 - Remove print to stderr (thanks to Chris Withers for the patch!)


--- Updated File DirectoryView.py in package CMF --
--- DirectoryView.py	2001/04/30 19:23:48	1.8
+++ DirectoryView.py	2001/06/04 02:31:03	1.9
@@ -197,12 +197,16 @@
                 self.data, self.objects = self.prepareContents(registry,
                     register_subdirs=changed)
             except:
-                # DEBUG
-                import traceback
-                traceback.print_exc()
-
+                from zLOG import LOG, ERROR
+                import sys
+                type,value,tb = sys.exc_info()
+                LOG('DirectoryView',
+                    ERROR,
+                    'Error during prepareContents:',
+                    "\nType:%s\nValue:%s\n" % (type,value))
                 self.data = {}
                 self.objects = ()
+                    
         return self.data, self.objects
 
     def prepareContents(self, registry, register_subdirs=0):