[Zope] Creating Recursive Folders

Jason Spisak 444@hiretechs.com
Fri, 13 Oct 2000 16:16:24 -0700


Zopists,

I am trying to use DTML to create folders within folders for me 3 levels
deep.
Two levels works, but 3 won't.  For example:

This works:

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

But this:

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

Throws an unathorized no matter who I am. How can I get 3 levels of
recursion.  I tried using 'let' to stand for the object, with no luck.

BTW, I accidently sent the last post to dev, forgive me.

All my best,

Jason Spisak
444@hiretechs.com