I am desperately trying to work with widgets at the moment I am
creating a form using WidgetsDeclaration but when I add a
singleselectfield like this:

group = widgets.SingleSelectField(name="group", label="In group",
        options=[group.displayName for group in
model.TG_Group.select()])


then I get this:


File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/TurboGears-0.9a1-py2.4.egg/turbogears/widgets/forms.py",
line 333, in update_data
    options.append((option[0], option[1], option_attrs))
UnboundLocalError: local variable 'option_attrs' referenced before
assignment


any help would be great!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to