On Wed, Jan 13, 2010 at 12:53 PM, Pablo Antonio <[email protected]> wrote: > Hello, > back in the old days when I still coded in PHP, I remember there was > way to send data via POST and receive it structured as arrays > (it'd be a dictionary in Python). > > For example, one could write something like > <input type="text" name="data[1][name]" /> > <input type="text" name="data[1][age]" /> > > and would receive a structure pretty much like this > {'data': > {'1': > {'name': "Pedro", 'age': 22} > } > } > > on the server-side. > > I've been told RoR works the same. How would one do something like that > in web.py? Is there some "standard" way to send form data organized into > groups?
I've written something similar for openlibrary.org. Feel free to adopt it for your needs. http://github.com/openlibrary/openlibrary/blob/master/openlibrary/plugins/upstream/utils.py#L97 Anand
-- 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.
