[Zope] parameter prob remains

Andreas Jung lists at andreas-jung.com
Sat Mar 5 09:15:37 EST 2005



--On Samstag, 5. März 2005 5:50 Uhr +0000 prabuddha  ray 
<buddha_2001 at rediffmail.com> wrote:

> thnx 4 the tip. but i got the following error when testing
>
> Error Type
> AttributeError Error Value
> 'dict' object has no attribute 'districtname'
>
> I don have anything like 'dict' .
>
> the stmt was ;
> <div tal:repeat="district
> python:context.getDistrictUser(district_name=request.form.districtname)">
>

request.form is usually a mapping/dictionary but *not* a record-style 
object...means you
need to access through the Python dictionary methods *wink*

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20050305/80ffaaf5/attachment.bin


More information about the Zope mailing list