[Zope] Newbie: manage_changeProperties and wrong permission

Sven Hohage sven.hohage@zeitspringer.de
Wed, 20 Dec 2000 14:39:33 +0100


Hello Milos,
I think the following is working:
<--You pass via form the needed values-->
<dtml- call expr="REQUEST.set('language',from_formLanguage)">
<dtml- call expr="REQUEST.set('property',from_formProperty)">


<--Then you iterate over a certain meta-type in your folder-->    
<-- You have to put the correct meta-type you want-->
  <dtml- in "objectValues('Folder')">  

       <dtml- let x=sequence-item>   

<--and you compare the id of the found objects with any property you
want(here the language)--> 
            <dtml- if "language==x.id">

<--the point is to adress the propertysheet of the ZClass you are
adressing-->
                  <dtml- call
expr="propertysheets.Name_of_the_propertysheet.manage_changeProperties({'lstName':newlstName})">


<--Also you don't have to use REQUEST['value'],because the values of the 
   REQUEST-Object are, if you have used a form action, directly
useable)-->

            </dtml-if>
        </dtml-let> 
  </dtml-in>


Bye 
       Sven