#TODO: In RequestMixin and ResponseMixin : get_response_class/get_request_class are a bit ugly. Do we even want to be able to set the parameters on the view ?
########## Request Mixin ##########
########## Request Mixin ##########
...
@@ -88,9 +87,6 @@ class ResponseMixin(object):
...
@@ -88,9 +87,6 @@ class ResponseMixin(object):
Ignores Accept headers from Internet Explorer user agents and uses a sensible browser Accept header instead.
Ignores Accept headers from Internet Explorer user agents and uses a sensible browser Accept header instead.
"""
"""
_ACCEPT_QUERY_PARAM='_accept'# Allow override of Accept header in URL query params
_IGNORE_IE_ACCEPT_HEADER=True
renderers=()
renderers=()
"""
"""
The set of response renderers that the view can handle.
The set of response renderers that the view can handle.
...
@@ -98,79 +94,27 @@ class ResponseMixin(object):
...
@@ -98,79 +94,27 @@ class ResponseMixin(object):
Should be a tuple/list of classes as described in the :mod:`renderers` module.
Should be a tuple/list of classes as described in the :mod:`renderers` module.
"""
"""
# TODO: wrap this behavior around dispatch(), ensuring it works
response_class=Response
# out of the box with existing Django classes that use render_to_response.
defrender(self,response):
"""
Takes a :obj:`Response` object and returns an :obj:`HttpResponse`.