Exemple #1
0
    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
Exemple #2
0
    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
Exemple #3
0
 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)
Exemple #4
0
 def render_response(self, wbrequest, cdx_lines):
     memento_lines = make_timemap(wbrequest, cdx_lines)
     return WbResponse.text_stream(memento_lines, content_type=LINK_FORMAT)