[Zope] Key Error

Mauricio Souza Lima mauricio.lima at varig.com
Thu Jan 8 13:16:47 EST 2004


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 at engin.umich.edu>
To: <zope at 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 at 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 )




More information about the Zope mailing list