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.