[Zope] grrr!

Ben Avery ben@thesite.org
Wed, 10 Jul 2002 20:36:43 +0100


--------------060508070206020405040207
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

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  >: (
>


--------------060508070206020405040207
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body>
excellent, that helps a lot :) <br>
<br>
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.<br>
<br>
I'd been using ExternalEditor, so didn't see the messages when saving in
the ZMI.<br>
<br>
(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
:)<br>
<br>
zope wrote:<br>
<blockquote type="cite" cite="mid001301c22846$d4b504d0$0201a8c0@lala">
  <title></title>
   
  <meta content="MSHTML 5.50.4807.2300" name="GENERATOR">
 
  <div> 
  <div><span class="984331919-10072002"><font face="Arial"
 color="#0000ff" size="2">I find  that if i open up the offending script
in the ZMI and 'test' it, it usually  gives more error information.</font></span></div>
 
  <div><span class="984331919-10072002"><font face="Arial"
 color="#0000ff" size="2">-m</font></span></div>
  </div>
 
  <blockquote dir="ltr"
 style="border-left: 2px solid rgb(0,0,255); padding-left: 5px; margin-left: 5px; margin-right: 0px;"> 
  
    <div class="OutlookMessageHeader"><font face="Times New Roman"
 size="2">-----Original Message-----<br>
    <b>From:</b> <a class="moz-txt-link-abbreviated" href="mailto:zope-admin@zope.org">zope-admin@zope.org</a>    [<a class="moz-txt-link-freetext" href="mailto:zope-admin@zope.org">mailto:zope-admin@zope.org</a>]<b>On
Behalf Of</b> Ben Avery<br>
    <b>Sent:</b>    Wednesday, July 10, 2002 11:56 AM<br>
    <b>To:</b>    <a class="moz-txt-link-abbreviated" href="mailto:zope@zope.org">zope@zope.org</a><br>
    <b>Subject:</b> [Zope] grrr!<br>
    <br>
    </font></div>
Is there any    way to get meaningful error messages for python scripts?
   
    <p><strong>Error Type: RuntimeError</strong><br>
    <strong>Error Value: Script    (Python) calendar_view_handler has errors.</strong></p>
   
    <p>doesn't exactly help me track down the error. there's nothing useful
in the    backtrace &nbsp;&gt;: (<br>
    </p>
  </blockquote>
</blockquote>
<br>
</body>
</html>

--------------060508070206020405040207--