[ZPT] Excessive recursion in ""
Evan Simpson
evan@digicool.com
Wed, 6 Jun 2001 12:06:45 -0400
From: "Peter Bengtsson" <mail@peterbe.com>
> In DTML this wouldn't really happen because if you do something like this:
> <dtml-with "_.getitem('whoweare.html')">
> <dtml-var title>
> </dtml-with>
> ...you never ask it to expand itself. You only pick the title property for
> the moment.
This is what 'nocall' was invented for. There seems to be growing sentiment
for putting it back in, but in the meantime you can use Python:
tal:define="obj python:getattr(here, 'whoweare.html')">
Yecch. Actually, in your case you can avoid the nastiness by writing:
tal:define="obj_title here/whoweare.html/title"
...but this isn't a solution in general.
Cheers,
Evan @ digicool