> Ideally, I want the CheckBoxList to use the actual QualificationType > instances as the index, and return them as a list. What would be > required for this to happen? Should I be using (qt.id, qt.name) for > the CheckBoxList options
Yes. > and casting them into QualificationTypes > using a validator and a custom _to_python method? Either that, or look them up yourself. > I've tried using qt.id as the index but if only one option is selected > it returns that value and not a list. Is there a way to coerce it to > return a list every time? Use validators.ForEach(validators.Int(not_empty=True), convertToList=True) 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 -~----------~----~----~----~------~----~------~--~---

