> The best way IMHO would be to allow for easy declaration of a names that are
> supposed to be lists under all circumstances. In Formencode, one can do so
> using the ForEach(as_list=True) (or something very similar) validator. Maybe
> a declarative decorator to do so would be good.
This should be easy enough to do, since we could do
for value in should_be_list:
params[value] = request.params.getall(value)
in the controller, reading the should_be_list out of the decoration
data we add through such a declarative decorator.
The question is really is a decorator the right API for this? It
seems reasonable though, so if nobody has a better suggestion that'll
probably be what we do.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" 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-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---