On Monday 23 April 2007 17:32, Fabian Schnuer wrote: > Hi, > I have a problem with the select shuttle widget. At the moment I have a > helper function that takes a sqlobject select() set in and turns it into > a list of options. This is a closure that being returned like > (simplified): > > def a(selection): > def b(): > return [(key,value),...] > return b > > However when giving this to the select shuttle as selected_options at > rendertime via value it returns:
If it's true what you say here, you're passing an callable as value - which isn't supported, and most probably not even what you want, as the value is _the_ value, meaning the selected one out of the whole list of options. Are you sure you don't want form.display(options=dict(my_select_list=a(selection)) instead? Diez --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---

