Python web development, really

Afanasiy abelikov72 at hotmail.com
Wed Jan 22 15:02:10 EST 2003


On 22 Jan 2003 04:40:58 -0800, paul at boddie.net (Paul Boddie) wrote:

>Afanasiy <abelikov72 at hotmail.com> wrote in message news:<rudq2vkfi6akc6absu404fbolmfec5m10a at 4ax.com>...
>> 
>> I am referring to things like PHP automatically splitting multi-valued
>> form fields (checkboxes, select/option) into arrays for you if you just
>> name them, in the html, with [] appended. Just a thoughtful addition.
>> 
>> Or perhaps Python developers consider it another horrible implicit.
>
>Horribly flawed, more like. I'd rather my application know (through
>various means, not necessarily hard-coded) what data type a particular
>piece of information is supposed to be, rather than such information
>arriving in an HTTP request. Certainly, the cgi module supports
>multi-valued fields, and I do agree that frameworks could provide
>better support for processing of field data. Indeed, I've done various
>experiments aimed at this neglected side of Web programming.
>
>Paul

Well they're all strings. Putting multi-valued fields into an array
at your discretion (by naming the form variable with [] appended)
is, in my opinion, useful. I guess if you routinely name form fields
with [] appended for some reason, this could indeed be a problem.




More information about the Python-list mailing list