Re: Re: [Zope] parameter prob remains
seems this worked.jus a matter of []. thanks yuan. but I'm totally at loss.no compilation errors, but when i test the districtname request parameter is missing. error display: Error Type KeyError Error Value 'districtname' which is quite obvious. plz tip me how to set the districtname requset var for the 1st time.sud be an ifelse thing plz tell i;m stuck. On Thu, 10 Mar 2005 Hong Yuan wrote :
Try this:
<div tal:repeat="district python:context.getDistrictUser(district_name=request.form['districtname'])">
-- HONG Yuan Homemaster Trading Co., Ltd. No. 601, Bldg. 41, 288 Shuangyang Rd. (N) Shanghai 200433, P.R.C. Tel: +86 21 55056553 Fax: +86 21 55067325 E-mail: hongyuan@homemaster.cn
prabuddha ray wrote:
Sorry to say but i dint get the clue. AJ plz tell me which python dictionay method will do it.
On Sat, 05 Mar 2005 Andreas Jung wrote :
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
--On Samstag, 5. März 2005 5:50 Uhr +0000 prabuddha ray <buddha_2001@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)">
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (1)
-
prabuddha ray