[Web-SIG] Form field dictionaries
Thijs van der Vossen
thijs at vandervossen.net
Thu Oct 30 02:55:24 EST 2003
On Wednesday 29 October 2003 17:17, Ian Bicking wrote:
> On Wednesday, October 29, 2003, at 11:12 AM, Barry Warsaw wrote:
> > Dumb-ass suggestion of the day: what if the field values were
> > represented by a dict subclass, and we had several different
> > subclasses,
> > each of which specified the exact behavior for __getitem__(). E.g.
> > David could have his "_getitem__ is getfirst" behavior, Steve could
> > have
> > his verified-multiples behavior, and I could have my "always return a
> > list" behavior. We'd then be reduced to choosing a default and a few
> > interfaces and everyone would be happy <wink>.
> That would make me unhappy... next thing you know, you'll be
> introducing a magic quoting dict subclass...
Aargh! Maybe it's time to move to Ruby for web development without magic? ;-)
Fingertips __ www.fngtps.com __ +31.(0)20.4896540
More information about the Web-SIG