[Zope] assignment problems

Geir B Hansen Geir B Hansen <geirh@funcom.com>
Tue, 4 Jan 2000 10:19:59 +0100


on 4. januar 2000 Milos Prudek wrote :
MP> After reading all Zope docs, I have difficulties writing simple
MP> assignment and test.

>> <!--#var standard_html_header-->
>>
>> <dtml-let Size='big'></dtml-let>
>> <dtml-if "Size=='big'"><h1></dtml-if>
>> Hello.
>> <dtml-if "Size=='big'"></h1></dtml-if>
>>
>> <!--#var standard_html_footer-->

MP> The above gives error Error Type: KeyError, Error Value: 'big'.

MP> --
MP> Milos Prudek

you're closing your let-tag before testing for 'big'..

try :

<dtml-let Size='big'>
<dtml-if "Size=='big'"><h1></dtml-if>
 Hello.
 <dtml-if "Size=='big'"></h1></dtml-if>
 </dtml-let>


--
Geir B Hansen
web-developer/designer
geirh@funcom.com
http://www.funcom.com