Hi all,
I'm having some difficulty finding a clear example of what I need to
do. I have a widget (SelectShuttle) that is returning the following:
"employee_selector": {"selected_removed": "99,157,51",
"selected_new": "99,157,51"}
I'd like to convert the string to a list, and I believe the correct
way to do this is using convert_to_list=True like:
class MySchema(validators.Schema):
selected_removed = validators.ForEach(validators.Int(),
convert_to_list=True)
selected_new = validators.ForEach(validators.Int(),
convert_to_list=True)
However, selected_removed and selected_new are obviously not correct.
Assuming my approach is correct, how do I go about referencing the
proper string? Thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---