Jorge, On 24/10/06, Jorge Godoy <[EMAIL PROTECTED]> wrote: > "Fernando Aires" <[EMAIL PROTECTED]> writes: > > I have a previously instantiated widget (particularly a > > SingleSelectField), and need to change one of its parameters > > (particularly the options attribute). To do it straightly generates an > > exception. > > I found at the list archives one patch from last January, from > > Michele Celia, proposing a change. However, there's any other way of > > doing so, without redefining the widget? > > The thread-safe option is using a callable to populate your list. This will > change the available options that can be selected. > > Another option is using JavaScript (this is the only option when the values > that you'll be showing depend on some previous choice).
Just registering: I followed your JavaScript suggestion. My system now generate the JS source always it calls the controller (this computation is small enough to be used without problems on my system). Thanks a lot, you all, for all the help... Sincerely, -- -><- Fernando Aires [EMAIL PROTECTED] "Em tudo Amar e Servir" -><- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

