Thank you! On Dec 4, 9:13 am, Timbo <tfarr...@swgen.com> wrote: > @Alexandre: I understand that you're trying to help. It's much better > to actually fix the broken code than to "fix" the applications. > > @Massimo: This is very doable. I'll prepare a patch and email it to > you. > > On Dec 3, 5:58 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > I am aware of this problem. > > > This is a different behavior in the cgi.FieldStorage object in Python. > > > Please look in web2py.gluon.main how post_vars is filled. > > > I have thought about this a lot and I do not see any way to make this > > work in web2py in the same way in 2.5 and 2.6. > > > Massimo > > > On Dec 3, 1:30 pm, Timbo <tfarr...@swgen.com> wrote: > > > > Thinking about it, this is a bug in web2py. > > > > Let me be a little more concrete in my description. I have a custom > > > form that submits to /app/default/entry?id=12. In the form, there is > > > a hidden input tag named "id" with a value of "12". Upon submission, > > > Python 2.5 looks like this: > > > request.vars.id = "12" > > > request.get_vars.id = "12" > > > request.post_vars.id = "12" > > > > Python 2.6 looks like this: > > > request.vars.id = ["12", "12"] > > > request.get_vars.id = "12" > > > request.post_vars.id = ["12", "12"] > > > > And what _should_ happen is this: > > > request.vars.id = ["12", "12"] > > > request.get_vars.id = "12" > > > request.post_vars.id = "12" > > > > Am I making sense? Massimo, is that expected behavior that we want > > > for web2py? > > > > -tim > > > > On Dec 3, 1:17 pm, Timbo <tfarr...@swgen.com> wrote: > > > > > I've been trying to migrate my web2py applications to Python 2.6 and I > > > > ran across a nasty bug in Python 2.5 that is fixed in Py2.6, but it > > > > amounts to a backward-incompatibility. > > > > > The bug fixed is:http://bugs.python.org/issue3801 > > > > > Basically this happens in a POST request where a variable is both in > > > > the URL and in the POST body. It causes that variable to be a list of > > > > two (identical) values on Python 2.6. In Py2.5 however, it will be a > > > > single value (the POST body value). > > > > > This is not an issue with web2py at all but perhaps it should be noted > > > > somewhere in some documentation about Python 2.6. > > > > > Just so you guys don't spend all the time I did trying to find this. > >
-- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.