[Zope-dev] manage_changeProperties in a loop

Arno Gross arno.gross@consotec.de
Tue, 16 Jan 2001 17:58:12 -0100


Suppose I have a list of existing folder objects and depending
on their index in the list I want to set a property called 'rang'.

I assumed you could something like this:


<dtml-call "REQUEST.set('rangList','folder1;folder2;folder2')"> 
(normally the list comes from outside)

<dtml-in " _.string.split(rangList,';')">   
  <dtml-with "_.getitem('sequence-item')">   
    <dtml-let index=sequence-index>      
      <dtml-call "manage_changeProperties({'rang':index})"> 
    </dtml-let>  
 </dtml-with>
</dtml-in> 

Any ideas or hints? Thanks
  Arno Gross, email: arno.gross@consotec.de