[Zope-CMF] Another DirectoryView patch
Chris Withers
chrisw@nipltd.com
Mon, 4 Jun 2001 16:14:48 +0100
This is a multi-part message in MIME format.
------=_NextPart_000_0B91_01C0ED11.7A37AD30
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Hi,
The attached patch makes the error message logged when prepareContents fails
more helpful than my last patch. It's very useful when trying to find errors
in FS-based python scripts ;-)
cheers,
Chris
------=_NextPart_000_0B91_01C0ED11.7A37AD30
Content-Type: application/octet-stream;
name="DirectoryView.py.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="DirectoryView.py.patch"
--- DirectoryView.py.1 Mon Jun 04 16:11:12 2001
+++ DirectoryView.py Mon Jun 04 16:09:48 2001
@@ -198,11 +198,10 @@
except:
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))
+ 'Error during prepareContents',
+ error=sys.exc_info())
self.data = {}
self.objects = ()
------=_NextPart_000_0B91_01C0ED11.7A37AD30--