[Zope] complex question

Tony McDonald tony.mcdonald@ncl.ac.uk
Fri, 5 Nov 1999 09:07:48 +0000


At 11:40 pm -0800 4/11/99, Sam Gendler wrote:
>
>qrySelectAllAtt returns a complete list of (att_id, att_string)
>qrySelectObjAtt returns a list of all (obj_id, att_id) where obj_id=x
>
><dtml-in qrySelectAllAtt>
>   <input name="blah" type="checkbox" value="blah"
>   <dtml-in qrySelectObjAtt>
>THIS NEXT LINE DOESN'T WORK
>     <dtml-if qrySelectObjAtt.att_id == qrySelectAllAtt.att_id>

Try quoting the "if" statement, you've got an expression there...ie

<dtml-if "qrySelectObjAtt.att_id == qrySelectAllAtt.att_id">

>       checked>
>       <dtml-break>
>     </dtml-if>
>     >
>   </dtml-in>
></dtml-in>
>

tone
------
Dr Tony McDonald,  FMCC, Networked Learning Environments Project 
http://nle.ncl.ac.uk/
The Medical School, Newcastle University Tel: +44 191 222 5888
Fingerprint: 3450 876D FA41 B926 D3DD  F8C3 F2D0 C3B9 8B38 18A2