Changes between Initial Version and Version 1 of Ticket #15741


Ignore:
Timestamp:
Apr 2, 2011, 6:39:29 AM (13 years ago)
Author:
Russell Keith-Magee
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15741 – Description

    initial v1  
    22
    33Django needs to either:
    4  1) Deprecate and remove populate_xheaders, or
    5  2) Add X-Object-Type and X-Object-Id header support to class-based generic views.
     4 1. Deprecate and remove populate_xheaders, or
     5 2. Add X-Object-Type and X-Object-Id header support to class-based generic views.
    66
    77If we choose to do (2), then we can't just wrap the generic view response in populate_xheaders, because we don't have access to the response object at the time at which we determine the object that is in use. It will probably be necessary to add generic support to define headers anywhere in the lifespan of a request, and then apply those headers when the response is constructed; i.e., in much the same way that self.request is available throughout the lifespan of a request, make self.response_headers available throughout the lifespan of a request.
Back to Top