From: "Frank Sonnemans" <[EMAIL PROTECTED]>
> This update breaks my previously working code. My site master template
> calls a dtml component to render a simple menu. This worked with the
> previous release of ZPT, but now results in a Name Error for the
> variable. What changed in the new release to cause this and how are we
> supposed to call dtml-components to avoid this problem. (Output Trace,
> dtml-code and object call syntax below)
The most reliable way to call DTML from ZPT is using a Python
expression, so that you can explicitly pass the client object and
request mapping. Try something like this:
tal:define="result here.my_dtml(None, request)"
tal:define="result here.my_dtml(here, request)"
The problem that you're having is a change in the implicit DTML call
code to make ZPT variables available to called DTML code.
Evan @ digicool
Zope-Dev maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists -