"Alvin Wang" <[EMAIL PROTECTED]> writes:

> ${dictname['dictkey']}
>
> If the dictkey does not exist, it fails.  I tried getattr.  I must have
> the syntax wrong or something but it didn't work.  How do I check for
> it?  

${dictname.get('dictkey', default)}

where default is optional (if absent you'll have None as result)

-- 
Jorge Godoy      <[EMAIL PROTECTED]>

Reply via email to