This form renders incorrectly

import web, simplejson
config = web.storage(simplejson.load(file('config.json', 'r')))
post_form = form.Form(
    form.Textbox("subject", description="Title:"),
    form.Dropdown("category", config.categories,
description="Category:"),
    form.Textarea("entry", rows="20", cols="75" , description="Text:")
)

because form.Dropdown needs each argument to be the 'tuple' type:

    if type(arg) == tuple:

I think it should be

    if type(arg) in (tuple, list):

Please say if its going to be corrected
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to