Coverage for rest_framework/negotiation : - 90% -
-
- From f2e6af89755c34083acb1a5fcd843a480037293f Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Fri, 21 Jun 2013 22:04:38 +0100 Subject: Remove erronous htmlcov files --- htmlcov/rest_framework_negotiation.html | 259 -------------------------------- 1 file changed, 259 deletions(-) delete mode 100644 htmlcov/rest_framework_negotiation.html (limited to 'htmlcov/rest_framework_negotiation.html') diff --git a/htmlcov/rest_framework_negotiation.html b/htmlcov/rest_framework_negotiation.html deleted file mode 100644 index 7ed526c9..00000000 --- a/htmlcov/rest_framework_negotiation.html +++ /dev/null @@ -1,259 +0,0 @@ - - -
- - - - -
-
-Hot-keys on this page
-- r - m - x - p toggle line displays -
-- j - k next/prev highlighted chunk -
-- 0 (zero) top of page -
-- 1 (one) first highlighted chunk -
-| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | -
- """ -Content negotiation deals with selecting an appropriate renderer given the -incoming request. Typically this will be based on the request's Accept header. -""" - - - - - - -- - - - raise NotImplementedError('.select_parser() must be implemented') -- - raise NotImplementedError('.select_renderer() must be implemented') -- - - - - - """ -Given a list of parsers and a media type, return the appropriate -parser to handle the incoming request. -""" - - - -return None -- - """ -Given a request and a list of renderers, return a two-tuple of: -(renderer, media type). -""" -# Allow URL style format override. eg. "?format=json - - -- - - - - - # Check the acceptable media types against each renderer, -# attempting more specific media types first -# NB. The inner loop here isn't as bad as it first looks :) -# Worst case is we're looping over len(accept_list) * len(self.renderers) - - - - -# Return the most specific media type as accepted. - -_MediaType(media_type).precedence): -# Eg client requests '*/*' -# Accepted media type is 'application/json' - -else: -# Eg client requests 'application/json; indent=8' -# Accepted media type is 'application/json; indent=8' - -- - - - """ -If there is a '.json' style format suffix, filter the renderers -so that we only negotiation against those that accept that format. -""" - -if renderer.format == format] - -raise Http404 - -- - """ -Given the incoming request, return a tokenised list of media -type strings. -- Allows URL style accept override. eg. "?accept=application/json" -""" - - - - - |
-