[Zope-CMF] Having trouble converting a DTML Method snippet to ZPT
Dieter Maurer
dieter@handshake.de
Fri, 19 Jul 2002 21:16:09 +0200
Jeffrey_Franks@i-o.com writes:
> I'm having difficulty in converting a DTML method that works just
> fine to a ZPT.
>
> The DTML method snippet is written
>
> <dtml-var printenv>
>
> to call a ZCGI perl script of the same name. It works.
>
> In a complimentary ZPT code snippet written as:
>
> <span tal:content="printenv">printenv</span>
>
> it croaks with traceback saying
> Error Type: Undefined
> Error Value: printenv not found in 'printevn', at line 7, column 1
There is no automatic (magic) name lookup in ZPT. You must tell
ZPT where objects should come from. In your case, "here/printenv"
will probably work.
Dieter