def render_response(self, wbrequest, cdx_lines, **kwargs): memento_lines = make_timemap(wbrequest, cdx_lines) new_memento_lines = self.fix_timegate_line(memento_lines) response = WbResponse.text_stream(new_memento_lines, content_type=LINK_FORMAT, ) response.status_headers.headers.append(('Cache-Control', 'max-age={}'.format(settings.CACHE_MAX_AGES['timemap']))) return response
def render_response(self, wbrequest, cdx_lines, **kwargs): memento_lines = make_timemap(wbrequest, cdx_lines) new_memento_lines = self.fix_timegate_line(memento_lines) response = WbResponse.text_stream( new_memento_lines, content_type=LINK_FORMAT, ) response.status_headers.headers.append( ('Cache-Control', 'max-age={}'.format(settings.CACHE_MAX_AGES['timemap']))) return response
def render_response(self, wbrequest, cdx_lines, **kwargs): memento_lines = make_timemap(wbrequest, cdx_lines) return WbResponse.text_stream(memento_lines, content_type=LINK_FORMAT)
def render_response(self, wbrequest, cdx_lines): memento_lines = make_timemap(wbrequest, cdx_lines) return WbResponse.text_stream(memento_lines, content_type=LINK_FORMAT)