Richard (koorb) wrote: > 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()]) > >
Hi Richard, you should provide a tuple like this: options = [(1, "First Group"), (2, "Second Group")] I think you're just providing the displayName. Ciao Michele --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

