[Zope] dtml-call fails silently, bug or feature...

Gilles Lenfant gilles@pilotsystems.net
Wed, 30 Jul 2003 20:07:41 +0200


----- Original Message -----
From: "Paul Williams" <paul@maximpact.net>
To: "Gilles Lenfant" <gilles@pilotsystems.net>
Cc: <zope@zope.org>
Sent: Wednesday, July 30, 2003 7:34 PM
Subject: Re: [Zope] dtml-call fails silently, bug or feature...


> On Wed, 30 Jul 2003, Gilles Lenfant wrote:
>
> > Coming back for maintenance to a DTML site and noticed something
strange...
> >
> > <dtml-var standard_html_header>
> > <dtml-call somethingThatDoesntExist>
> > <dtml-var standard_html_footer>
> >
> > ...fails silently and does nothing ! I mean there is no AttributeError
or
> > such exception saying that there's no "somethingThatDoesntExist" object.
> >
> > Is it a bug or a feature ?
>
> As far as I know, this is a feature since the call returns no value. It is
> supposed to be silent since otherwise whatever it returned would be
> rendered on the page.
>
> For me, this isn't too much of a problem when debugging as
>
> 1: you can make it a dtml-var while debugging
>
> and
>
> 2: if there is an error, but no return I know to check my dtml-call
>
> -  Paul
>

Thanks Paul,

For me it's a bug, even if dtml-call returns no value since it didn't find
the object/method to call !
I'll change all dtml-call to dtml-var and a method that returns nothing.
Tired of fixing stuff in ugly & complex dtml logic made by a guy who made
logic with no python script... ;o(

--Gilles