durusmail: quixote-users: Proposal: getfirst and getlist for HTTPRequest
Proposal: getfirst and getlist for HTTPRequest
2003-04-03
2003-04-05
2003-04-05
Re: Proposal: getfirst and getlist for HTTPRequest
2003-04-07
Proposal: getfirst and getlist for HTTPRequest
GerhardHäring
2003-04-05
* Jim Dukarm  [2003-04-04 19:29 -0800]:
> --- Greg Ward napisal -------
> > I think it would be better to make request.form a custom type rather
> > than a dictionary.  Then let's talk about adding missing features.
>
> Can request.form be a subclass of dict? That way, all the basic dict
> features that people have been using with it will still work. [...]

You don't need to subclass dict to implement the mapping interface. See
the Python documentation for the mapping (and sequence) interfaces.

Gerhard
--
mail:   gh@ghaering.de
web:    http://ghaering.de/

reply