summaryrefslogtreecommitdiff
path: root/webob/acceptparse.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove deprecated str_ and othersBert JW Regeer2016-01-281-24/+1
|
* Improved test coverage for MIMEAccept wildcard matchingLucas Taylor2015-03-231-10/+6
|
* Allow wildcards to be used when comparing a MIMEAccept against an offerLucas Taylor2015-03-231-10/+56
| | | | | | - Use list comprehension instead of map for minor performance gain in ``MIMEAccept.parse`` - Fixes #155
* Ignore invalid mime wildcards in MIMEAcceptRyan Kelly2012-11-091-0/+4
|
* Fix case-sensitive behaviour in MIMEAccept and AcceptCharset.Lorenzo M. Catucci2012-06-061-7/+8
| | | | | RFC 2616 requires case-insensitive matching for media ranges and character sets.
* Add actual fix.Graham Higgins2012-05-121-1/+2
|
* Fix NilAccept.best_match() so an empty "offers" + default_match picks defaultChristopher Allan Webber2011-10-181-1/+1
| | | | | | | Prior to this, NilAccept.best_match([], default_match="default") threw: UnboundLocalError: local variable 'best_offer' referenced before assignment Also added a relevant test.
* remove Accept.best_matches(), add Accept.__iter__()Sergey Schetinin2011-09-261-31/+11
|
* work on test coverageSergey Schetinin2011-09-241-1/+1
|
* remove unreachable code in first_matchSergey Schetinin2011-09-241-10/+0
|
* use paren-importsChris McDonough2011-09-221-2/+4
|
* sort imports and more direct importsChris McDonough2011-09-221-1/+3
|
* use a 'normal' MultiDict for both GET and POST instead of a ↵Chris McDonough2011-09-161-0/+2
| | | | UnicodeMultiDict; try to beat down some more test failures.
* make sure that `'en' in AcceptLanguage('en-gb')` and `'en_GB' in ↵Sergey Schetinin2011-09-081-2/+5
| | | | AcceptLanguage('en-gb')`
* * add AcceptCharset and AcceptLanguage subclasses instead of branching in ↵Sergey Schetinin2011-09-071-61/+54
| | | | | | | Accept.__init__ * that allows us to remove Accept.header_name * and change Accept.__repr__ to be more straightforward
* Fixed AssertionError raised by MimeAccept best_macth function whenzyegfryed2011-09-071-0/+1
| | | | using wildcard Accept header.
* * add warn_deprecation(...) mechanism that centralizes the deprecation ↵Sergey Schetinin2011-07-081-9/+3
| | | | | | | warnings / exceptions based on current WebOb version * deprecated_property is only used to throw exception now, simplify accordingly * remove check for cls.charset, cls.default_charset in BaseRequest.__init__ (they were deprecated long enough, for us to allow subclasses to use them as they wish)
* * move html_escape to webob.util (still exported from webob)Sergey Schetinin2011-07-071-5/+2
| | | | * kill rfc_reference, add header_docstring
* fix docs, adjust tests for docstringsSergey Schetinin2011-07-071-4/+6
|
* make accept.quality(..) return best quality, not first matchSergey Schetinin2011-06-301-5/+4
|
* add deprecation warning for accept.first_match(..) - use .best_match(..) insteadSergey Schetinin2011-06-301-3/+16
|
* * fix accept matching for types that UA assigned zero-quality (see ↵Sergey Schetinin2011-04-101-31/+39
| | | | | | https://bitbucket.org/ianb/webob/issue/10 ) * check offers to be specific more consistently (in all matchers)
* webob requires python 2.4+ since 418:5621426aecc0, drop compat modules and ↵Sergey Schetinin2010-10-011-1/+1
| | | | use decorators where appropriate
* * move and rename descriptors._rfc_reference -> util.rfc_referenceSergey Schetinin2010-08-111-1/+28
| | | | | * move accept_property to acceptparse * move etag_property to etag
* accept-language:Sergey Schetinin2010-08-111-3/+10
| | | | | * add prefix matching http://trac.pythonpaste.org/pythonpaste/ticket/393 * best_match(fallback) should add fallback as it was passed, not how it was specified in the request
* accept-charset: add default iso-8859-1 quality ↵Sergey Schetinin2010-08-111-0/+7
| | | | http://trac.pythonpaste.org/pythonpaste/ticket/394
* * merge headersdict and datastruct modules into new module webob.headersSergey Schetinin2010-08-111-4/+1
| | | | | | | * rename HeadersDict to ResponseHeaders * merge updatedict module into cachecontrol * merge webob.util.reversed and webob.compat modules into webob.util.__init__ * make DictMixin, reversed and sorted importable directly from webob.util
* corrections to changeset:8075Sergey Schetinin2009-10-181-49/+36
|
* * make accept.best_match smarter (prefers more specific matches) (kinda ↵Sergey Schetinin2009-10-181-29/+52
| | | | | | | fixes ticket:348) * Accept._match was completely broken, fixed * best_match() argument may not contain non-specific types
* webob: make sure bool(Request.blank('/').accept) is False (Ticket #385)Sergey Schetinin2009-10-151-3/+7
|
* update docstringIan Bicking2009-06-081-1/+3
|
* Prefer types earlier in the list with req.accept.best_match(types)Ian Bicking2009-06-041-1/+1
|
* more familliar repr idsPhilip Jenvey2008-11-281-1/+1
|
* added in sorted for python2.3 compatibility, from Bryan O'SullivanIan Bicking2008-05-051-0/+4
|
* Make req.accept_encoding be really empty, unlike beforeIan Bicking2007-08-161-0/+5
|
* docstring updatesIan Bicking2007-08-161-0/+20
|
* Add request.accept.accept_html(); add an option to get exc_info from ↵Ian Bicking2007-08-101-0/+9
| | | | call_application
* renameIan Bicking2007-08-081-0/+259