[ZPT] Excessive recursion in ""

Peter Bengtsson mail@peterbe.com
Wed, 6 Jun 2001 17:27:03 +0200


Tried this, didn't work:
--- object: standard_menu ---
<tr tal:define="obj here/whoweare.html">
    <td tal:content="obj/title">Title</td>
</tr>
-------------------------------
...when trying to Test it is gives me
Error Type: TALESError
Error Value: exceptions.SystemError on Excessive recursion in ""
and the Traceback is a mile long so I won't include it here.

The thing is that whoweare.html includes this object in itself by using the
master macro which contains this code:

<div tal:replace="structure here/standard_menu"> Here's the menu will be
displayed </div>

So, an infinite loop!
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.

Any hints on this?

peter