[Zope] how to understand traceback

Dieter Maurer dieter at handshake.de
Sat Mar 12 13:16:54 EST 2005


prabuddha  ray wrote at 2005-3-12 06:57 -0000:
> ...
>   Module Products.PageTemplates.TALES, line 221, in evaluate
>    - URL: /store_nic/consumables/index_html

You are in "store_nic/consumables/index_html" ...
>    - Line 85, Column 0
>    - Expression: <PythonExpr 
>context.getDistrictUser(distname=request.form['districtname'])>

and try to evaluate "context.getDistrictUser(distname=...)"...

> ...
>"context.getDistrictUser(distname=request.form['districtname'])", 
>line 1, in <expression>
>   Module AccessControl.ZopeGuards, line 67, in guarded_getitem
>KeyError: 'districtname'

Your "request.form" does not contain "districtname".


I suggest some background reading (e.g. the Zope Book,
2.7 edition, online) in order to understand how
variables come into "request.form".


-- 
Dieter


More information about the Zope mailing list