[Zope] get 2 properties at the same time

Rik Hoekstra rik.hoekstra@inghist.nl
Fri, 30 Jun 2000 22:32:55 +0200



Hello,

I need get 2 properties of Zclass at the same time.

[rh]Unless I understand your question wrongly, this is going to be more easy
then you think

<td><select name="region">
         <dtml-in "Locality.objectValues(['Locality']) ">

(sidenote that this dtml-in is iterating the objects in Locality, not the
properties)

             <option value="<dtml-var REGION>"><dtml-var title>
         </dtml-in>
         <option selected>
</select></td>

I need get another property, for example MASTER_REGION, in this moment.


[rh]Just call it

<dtml-var MASTER_REGION>

(doesn't matter whether it's an object or a property - as defined in a
ZCLass Propertysheet)

If you want to do the same thing as with the Locality objects, just repeat
your code here.

If you want to do something else, you'll have to rephrase your question.

hth

Rik