[Zope] Workaround and a tree and dtml-in problem

Chris Withers chrisw@nipltd.com
Fri, 18 Aug 2000 13:51:41 +0100


Phil Harris wrote:
> Why isn't _ available in the tree tag?
> 

The workaround is to wrap it in a 
<dtml-let posting = "_.getitem('sequence-item',0)">

But now I'm confused.

Surely

  <dtml-in postingValues>
    <dtml-let posting="_.getitem('sequence-item',0)">
    <dtml-tree posting branches="postingValues">   
      <dtml-var id><BR>
    </dtml-tree>   
    </dtml-let>
  </dtml-in>

should produce the same results as:

<dtml-tree branches="postingValues">
  <dtml-var id><BR>
</dtml-tree>

It doesn't :(

Why am I doing this you may ask? Well, I want to do batching at the top
level and, AFAIK, dtml-in doesn't support this :(

any ideas?

Chris