From: Darren S. <pha...@gm...> - 2015-01-08 19:15:18
|
Greetings, I have a field in my configuration section that should be set with a list of one or more email addresses for notification; i.e. either of these configuration settings would be correct: notify = me...@ex... notify = me...@ex..., yo...@ex... What seems ideal would be for the string_list() validator to accept a single list item (essentially, the same validation as string()) and not *only* a list. I sampled it with a 'min' value of 1 but that also resulted in validation failure with a single value in the field: notify = string_list(default=None, min=1) Is there a way to accomplish this with the string_list() validator, or does this require a custom validator? Any chance to see a modification string_list to support single-item lists if not? -- Darren Spruell pha...@gm... |