The MIMEAccept class is accessible via the webob.acceptparse module.
This class knows about mime wildcards, like image/*
Return the quality of the given match. Returns None if there is no match (not 0).
Returns the first match in the sequences of matches that is allowed. Ignores quality. Returns the first item if nothing else matches; or if you include None at the end of the match list then that will be returned.
Returns the best match in the sequence of matches.
The sequence can be a simple sequence, or you can have (match, server_quality) items in the sequence. If you have these tuples then the client quality is multiplied by the server_quality to get a total.
default_match (default None) is returned if there is no intersection.
Return all the matches in order of quality, with fallback (if given) at the end.
See the source for more information.