[ZPT] Quick question

Steve Drees drees@the-bridge.net
Wed, 20 Jun 2001 14:49:03 -0500


> <input tal:attributes="value request/somevar" type="hidden" name="somevar"
> value="" />
>
> How do i prevent key errors if request/somevar isn't present?

Quick answer
1) Upgrade to latest PageTemplates
2) <input tal:attributes="value request/somevar | nothing" type="hidden"
name="somevar" value="" />