[Zope] Newbie DTML question

Phillip J. Eby pje@telecommunity.com
Tue, 02 Feb 1999 08:52:40 -0500


At 03:19 PM 2/1/99 -0800, Timothy Grant wrote:
>
>Here's the traceback:
>
><!--
> Error type:  
> Error value: _[Category]
> -->
> ...
>KeyError: (see above)
>

My guess is you used <!--#var _[Category]--> when you should've used
<!--#var "_[Category]"-->.  The latter is an expression, looking up the
variable whose name is in variable Category, while the former looks for a
variable *whose name* is "_[Category]", and doesn't exist, therefore
causing a KeyError.