[Zope] Another Zope question
Nolan Darilek
nolan_d@bigfoot.com
Sat, 6 May 2000 13:31:16 -0500 (CDT)
>>>>> "Kevin" == Kevin Dangoor <kid@kendermedia.com> writes:
Kevin> Actually, you're almost there... You use _['sequence-item']
Kevin> to look up a variable called sequence-item in the
Kevin> namespace.... similarly, you can do _[_['sequence-item']]
Kevin> to look up sequence-item, and then look up that string in
Kevin> the namespace. So, _[_['sequence-item']].absolute_url()
Kevin> will give you the URL of that object.
Here is the modified code.
<dtml-in menuitems>
<dtml-if sequence-even>
<a href="<dtml-var "_[_['sequence-item']].absolute_url()">">
<dtml-else>
<dtml-var sequence-item></a><br>
</dtml-if>
</dtml-in>
While this does get the object, it reports a SystemError. The page
also takes nearly a minute to generate, and the hundreds of lines of
traceback seem to repeat over and over, so I'm thinking that the code
is somehow caught in a loop of some sort, though I don't understand
how the extra _[] could have caused this.
Thanks.