"Shannon -jj Behrens" <[EMAIL PROTECTED]> writes:
> This multiple variable values vs. single has been a bugger for Python
> developers since the early days of the CGI module. I think the
> thinking is that by saying self.form_result['fieldname'], you're
> implicitly saying you're expecting one thing, whereas saying
> request.params.getall('role_id'), you're explicitly saying you're
> expecting multiple values. I like it. Even if only one thing gets
> selected, by using getall, you're implicitly saying you want the
> results in a list.
OK, that explains a lot. Perhaps the form_result docs need to be
augmented to mention to this since it seems to surprise folks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---