[Zope-dev] Why is TemplateDict so opaque? -and- Have youseen this problem?

Dave Parker dparker@globalcrossing.com
Thu, 16 Dec 1999 14:58:55 -0600


Dave Parker wrote:

> This version blows up:
> methodA:
>         Depth: <dtml-var counter>
>         <dtml-if "counter < 2">
>         <dtml-var "methodA(counter=counter+1)">
> 
> The error:
>
> Error type:  KeyError
> Error value: counter

Sorry - wrong screen - it is:

Error type:  NameError
Error value: methodA


One other thought (and I could be way off here), but Zope is responsible
for taking action based on the fact that "" was specified - why can't
the mechanism that takes that action just ensure for me that my
namespace is propagated into whatever I might be calling, ad infinitum? 
It is certainly very counter-intuitive that it would not (very Perl
like).