problem with web.input(smthing=[])

58 views
Skip to first unread message

Szymon Stanisławowicz

unread,
Feb 3, 2012, 6:20:32 PM2/3/12
to web.py
Hi, just started with python & web.py.

d = web.input(uids=[])
print d
print web.data();

<Storage {'utype': u's_pupil', 'uids[]': u'22390', 'uids': [],
'recur': u'false'}>

recur=false&utype=s_pupil&uids%5B%5D=10758&uids%5B%5D=22390

according to http://webpy.org/cookbook/input I expected something
different...
I want array of uids. Tried 0.34 from debian and 0.36 from homepage.

TIA.

Anand Chitipothu

unread,
Feb 4, 2012, 6:14:29 AM2/4/12
to we...@googlegroups.com
2012/2/4 Szymon Stanisławowicz <ssb.p...@gmail.com>:

You should pass uids=10758&uids=22390 in the query string. Not uids[]=....

Anand

Reply all
Reply to author
Forward
0 new messages