Zopists,

I forgot about the 'let' tag.  It ain't pretty but it works. Here's the
code in DTML for recursive folder generation:

<dtml-in expr="_.range(0, 2)">
<dtml-let a=sequence-item>
 <dtml-call "manage_addFolder(_.str(a), _.str(a))">
<dtml-in expr="_.range(0, 2)">
  <dtml-call "_.getitem(_.str(a),
1).manage_addFolder(_.str(_['sequence-item']),
_.str(_['sequence-item']))">
</dtml-in>
</dtml-let>
</dtml-in>

ugly.

Sorry to mail when the answer was in the vaccum of my memory.

All my best,

Jason Spisak
[EMAIL PROTECTED]

_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to