"Andrew Basson" <[EMAIL PROTECTED]> writes: > When using the SelectShuttle as a widget, how do you update the "available" > and "selected" fields in the template?
You have to provide a callable to available options and pass selected options as the value. (This is with the latest version, that brings a lot of improvements, of course... The old one was too rudimentary but still available for backward compatibility...) Take a look here: http://public-trac.godoy.homeip.net/trac/vp_ldp_br/browser/trunk/vp/usuarios/formularios.py#L133 The "make_list" method is available at the wiki (http://trac.turbogears.org/turbogears/wiki/PassingArgumentsToCallables) but also here: http://public-trac.godoy.homeip.net/trac/vp_ldp_br/browser/trunk/vp/model.py#L49 If you modify the object dinamically you're in serious risk to show data that doesn't make sense or mix values from the operations of one user with the other. -- Jorge Godoy <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

