I'm loading config from json file using simplejson like this:
config = web.storage(simplejson.load(file('config.json', 'r')) )
so all arrays from the json file become python lists
however, when i pass it to args of form.Dropdown, it renders
incorrectly.
I checked the code and found out that it needs arg to be the 'tuple'
type:
if type(arg) == tuple:
i think it should be
if type(arg) in (tuple, list):
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---