excellent, that helps a lot :) The ZMI view of the script gives errors and warnings, without even having to test the script. This is very useful, although the messages don't give you line numbers, which would have been excellent. I'd been using ExternalEditor, so didn't see the messages when saving in the ZMI. (to anyone that uses the ZMI through a windows-based browser: using ExternalEditor and Gvim is fantastic - colour syntax highlighting modes for DTML and Python :) zope wrote:
I find that if i open up the offending script in the ZMI and 'test' it, it usually gives more error information. -m
-----Original Message----- *From:* zope-admin@zope.org [mailto:zope-admin@zope.org]*On Behalf Of* Ben Avery *Sent:* Wednesday, July 10, 2002 11:56 AM *To:* zope@zope.org *Subject:* [Zope] grrr!
Is there any way to get meaningful error messages for python scripts?
*Error Type: RuntimeError* *Error Value: Script (Python) calendar_view_handler has errors.*
doesn't exactly help me track down the error. there's nothing useful in the backtrace >: (