Olli Wang wrote: > could u tell my how to change the options at "display-time"?
Pass an option parameter to the display method of your form, if you have a field named "type" that's a SelectionField (like SingleSelectField, MultipleSelectField, RadioButtonList and CheckBoxList) you can for example pass a dict like this from the controller: new_options = dict(type=[(1, "Java"), (2, "Ruby")]) and then: form.display(options=new_options) By the way even using a callable changes the options at display time since that's when it's called. For further reference take a look at our tests: http://trac.turbogears.org/turbogears/browser/trunk/turbogears/widgets/tests/test_widgets.py#L229 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 -~----------~----~----~----~------~----~------~--~---

