A Storage object, by the way, is just a "cooler dictionary". It lets you write i.name instead of i["name"], but that's it. web.input() returns a Storage object (see "input" under the "webapi.py" header in <http://webpy.org/docs>) containing all GET and POST arguments. So for bla?name=x&foo=bar this: >>> web.input() would be the same as: >>> Storage({"name": "x", "foo": "bar"})
(note that Storage is a web.py thing, not a general Python thing). Greetings, b^4 wonko wrote: > awesome! works like a charm. > > On Sep 3, 7:52 pm, "Aaron Swartz" <[EMAIL PROTECTED]> wrote: >> I think you want i.name -- i contains all the variables. >> >> On Wed, Sep 3, 2008 at 10:49 PM, Anand Chitipothu <[EMAIL PROTECTED]> wrote: >> >>>> def GET(self): >>>> i = web.input(name=None) >>>> print 'hello' +i >>> This should be: >>> def GET(self): >>> i = web.input(name='') >>> print 'hello' + i.name > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" 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/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
