You cant use tags inside a tag, try this: <dtml-let degree_description="REQUEST.form["degree_description_%s" % _['sequence-item'] ]"> Best regards... ----- Original Message ----- From: "Asad Habib" <ahabib@engin.umich.edu> To: <zope@zope.org> Sent: Thursday, January 08, 2004 2:11 PM Subject: [Zope] Key Error
Hello. Zope is flagging me with a 'Key Error' when I try to execute the following code.
<dtml-let numberDegrees="REQUEST.get('numberDegrees')"> <dtml-in "_.range(0, _.int(numberDegrees), 1)"> <dtml-let degree_description="REQUEST.form['degree_description_<dtml-var sequence-item>']"> </dtml-let> </dtml-in> </dtml-let>
The variables designated by degree_description_<dtml-var sequence-item> are being successfully passed into this DTML method from a DTML document. However, I don't know any other way of accessing them within the loop. Any help would be greatly appreciated. Thanks.
- Asad
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )