autodelegate and web.input()

3 views
Skip to first unread message

tort...@gmail.com

unread,
Mar 13, 2006, 9:21:23 PM3/13/06
to web.py
I think I've found a bug in regards to using autodelegate and not
getting what you'd expect from web.input().

So I wanted to get the url encoded form input (.i.e ?foo=bar&qax=qux )
but if I use autodelegate then in my GET_xxx functions web.input() was
usesless and returned nothing, but if I instead write my own GET method
with the extra argument to get the captured portion of a the url
mapping then web.input() returns the storage object I want (<Storage
{'foo': 'bar', 'qax': 'qux'}>)

In the autodelegation state, by examining the context, I can see that
QUERY_STRING is available and _inputfs appears to have some cgi
FieldStorage and MiniFieldStorage stuff, where I could get what I
wanted... but I found it easier just to write my own delegation rather
than stick with autodelegate.

This is a bug, right?

Aaron Swartz

unread,
Mar 27, 2006, 10:01:34 PM3/27/06
to we...@googlegroups.com
> I think I've found a bug in regards to using autodelegate and not
> getting what you'd expect from web.input().

I can't reproduce this in the latest version. If this is still
happening, can you provide an example file that has the problem?

Reply all
Reply to author
Forward
0 new messages