Suppose the following query parameters:
myurl/?var=1&var=2&var=3
Running this through QueryDict correctly gives me
<MultiValueDict: {'var': ['1', '2', '3']}>
I had hoped that multiple levels in these variables would result in a
nested dictionary, but no such luck. To illustrate the problem lets
suppose the following query:
myurl/?
countries[visited]=us&countries[visited]=dk&countries[notvisited]=be
It gets parsed as
<MultiValueDict: {'countries[visited]': ['us', 'dk'],
'countries[notvisited]': ['be']}>
yet i would have hoped:
<MultiValueDict: {'countries': {'visited': ['us', 'dk'], 'notvisited':
['be']}}>
I'm thinking it would be better to have QueryDict recurse through the
values instead of just parsing one level deep. Is there a way to
achieve what I want, or is this handled at the mod_python level?
Regards,
Simon
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---