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

Paul Williams paul@maximpact.net
Wed, 30 Jul 2003 13:34:33 -0400 (EDT)


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