It looks like they changed the cgi module in 2.6 to pull the query
string for both GET and POST when using FieldStorage.

Do you try to maintain 2.6 compatibility or should I revert to 2.5?

Supporting articles:
http://bugs.python.org/issue1817
http://trac.edgewall.org/ticket/7876


On Jan 1, 1:37 pm, "mr.freeze" <[email protected]> wrote:
> More clues:
> web2py/gluon/main.py line 184
> dpost=cgi.FieldStorage
> (fp=request.body,environ=environ,keep_blank_values=1)
>
> Python 2.5 result:
> FieldStorage(None, None, [FieldStorage('delete', None, 'YES'),
> FieldStorage('sender', None, 'design/test')])
>
> Python 2.6 result:
> FieldStorage: FieldStorage(None, None, [MiniFieldStorage('sender',
> 'design/test'), FieldStorage('delete', None, 'YES'), FieldStorage
> ('sender', None, 'design/test')])
>
> On Jan 1, 11:52 am, "mr.freeze" <[email protected]> wrote:
>
> > The one thing I forgot to mention is that I am running Python 2.6 and
> > of course that is the problem!
>
> > It works perfectly on 2.5
>
> > Sorry!
>
> > On Jan 1, 11:31 am, "mr.freeze" <[email protected]> wrote:
>
> > > It is working now. I confirmed that there was only one sender passed
> > > in the URL before I upgraded.
>
> > > I was able to reproduce the problem on 3 different machines yesterday.
> > > I still have the previous version on one machine and will keep
> > > debugging out of curiosity.
>
> > > Thanks and Happy New Year!
>
> > > On Jan 1, 4:45 am, mdipierro <[email protected]> wrote:
>
> > > > I added a fix in trunk but this does not appear to be a web2py problem
> > > > and I cannot reproduce it.
>
> > > > Before you upgrade.
>
> > > > Can you try again? Is it possible you had two sender=... in the URL.
> > > > If so, can you try find out how that came to be?
>
> > > > Massimo
>
> > > > On Dec 31 2008, 1:25 pm, "mr.freeze" <[email protected]> wrote:
>
> > > > > Seems to occur in the URL function after the file is unlinked.  The
> > > > > sender variable is coming through as a list instead of a string. I'm
> > > > > using vista.
>
> > > > > Traceback (most recent call last):
> > > > >   File "C:\web2py_test\gluon\restricted.py", line 62, in restricted
> > > > >     exec ccode in environment
> > > > >   File "C:/web2py_test/applications/admin/controllers/default.py",
> > > > > line 570, in <module>
> > > > >   File "C:\web2py_test\gluon\globals.py", line 55, in <lambda>
> > > > >     self._caller=lambda f: f()
> > > > >   File "C:/web2py_test/applications/admin/controllers/default.py",
> > > > > line 254, in delete
> > > > >     redirect(URL(r=request,f=sender))
> > > > >   File "C:\web2py_test\gluon\html.py", line 53, in URL
> > > > >     else: function=f.__name__
> > > > > AttributeError: 'list' object has no attribute '__name__'
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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