Hmm, interesting..
request.get_vars = ...'sensor_id': ['51', '5', '2', '5', '3', '5',
'4']
post_vars is empty (as I would expect).
Cheers.

If it turns out to be a python bug I'll just regex it out of
request.values() instead :)

On Feb 26, 3:50 pm, mdipierro <[email protected]> wrote:
> This parsing is not done by web2py. It is done by the Python
> cgi.FieldStoarge function.
> What is in requet.get_vars and request.post_vars?
>
> On Feb 25, 10:44 pm, Ben <[email protected]> wrote:
>
>
>
> > I do indeed want multiple values, however, they should be ['51', '52',
> > '53', '54'].
>
> > On Feb 26, 3:37 pm, mdipierro <[email protected]> wrote:
>
> > > This is a feature.
> > > If you have multiple values for the same var in the url you get a list
> > > with the values.
>
> > > On Feb 25, 10:06 pm, Ben <[email protected]> wrote:
>
> > > > Hi all,
> > > > I have a URL like the following:
> > > > feature_reading?
> > > > feature_id=15&sensor_id=51&sensor_id=52&sensor_id2&sensor_id=53&sensor_id=5
> > > >  4
>
> > > > however, when I try to extract the sensor_id vars at the other end, i
> > > > get a list as such:
> > > > ['51', '5', '2', '5', '3', '5', '4']
>
> > > > anyone had this problem before?

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to