Re: Changing quixote.get_field?
Robert Ladyman <[email protected]> Mon, 12 Nov 2012 19:13:38 +0000
| Newsgroups | gmane.comp.web.quixote.user |
|---|---|
| Organization | File-Away Limited |
| Message-ID | <[email protected]> |
I'd prefer either another function or an additional parameter to get_field() / setting somewhere - I've built other code around its current behaviour. > I'm considering changing the interface of quixote.get_field(). I > find the function to be handy for quick access to form fields or > query parameters. However, the fact that it can sometimes return a > list is quite annoying to deal with correctly. Looking at my code I > see I mostly forget about that. > > Does anyone object to changing quixote.get_field() to return the > last field value if there are multiple values? The behavior of > HTTPRequest.get_field() would remain unchanged. > > Alternatively, I could introduce a new function and leave get_field > alone. > > Regards, > > Neil > _______________________________________________ > Quixote-users mailing list > [email protected] > http://lists.quixote.ca/cgi-bin/mailman/listinfo/quixote-users -- Robert Ladyman File-Away Limited, 32 Church Street, Newtyle Perthshire, PH12 8TZ SCOTLAND Registered in Scotland, Company Number SC222086 Tel: +44 (0) 1828 898 158 Mobile: +44 (0) 7732 771 649 http://www.file-away.co.uk