This may or may not help your situation, but I have found that switching to TAL made enormous improvements in this type of problem. TAL checks the syntax prior to runtime -- if you try and save a template with incorrect syntax you will most often receive an error message upon saving. I have also found the error messages to be a bit more constructive and generally tend to point to the exact line where the error is located rather than referencing a line that has not much to do with where the error actually is. Kevin Dennis Allison wrote:
Sorry if was unclear. Let me try to clarify--
We have a number of pages which are relatively complex--lots of tables within tables within frames within dtml-this and dtml-that. In the process of editing, we sometimes inadvertantly create a syntax error which causes an error message, for example, unexpected end of dtml-let. Usually that's a problem caused by some other problem. It would be helpful to have some sort of tool which will help to localize the real cause rather then the effect.
On Sun, 18 May 2003, David Hassalevris wrote:
Dennis, Your message is difficult to respond to. That is, it is unclear what you are *really* looking for. For example you mention "inscrutable error messages" yet you gave no example "error messages". Error messages, if they are DTML related should not be "inscrutable". Error messages relating to "markup" are another story. If that is the story you are referring to then try something silly like this: 1) View your rendered code 2) Click your browser "view source" button 3) Save the viewed source to file 4) upload it to one of the publically available HTML checkers. If errors you mention are markup-related, a HTML checker will catch stuff that your specific browser may not.
David ----- Original Message ----- From: "Dennis Allison" <allison@sumeru.stanford.EDU> To: <zope@zope.org> Sent: Saturday, May 17, 2003 8:27 AM Subject: [Zope] Syntax checker for Zope
Is there a syntax checking module for Zope, a program that can be used to help find those bugs that generate inscrutable error messages and not a hint as to where the real problem lies?
Every so ofen I have a Zope object that's in error--a misplaced quote, an extra or missing bit of markup (dtml or html)--but finding it is a lengthy and frustrating process. A tool would be helpful. I've ggogled about looking but have not found anything. Pointers?
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )