Exemplo n.º 1
0
 def renderHTTP(self, ctx):
     request = inevow.IRequest(ctx)
     uihelpers.set_nocache_headers(request)
     request.setResponseCode(200, 'OK')
     request.write('OK')
     request.finish()
     return ''
Exemplo n.º 2
0
 def renderHTTP(self, ctx):
     request = inevow.IRequest(ctx)
     uihelpers.set_nocache_headers(request)
     request.setResponseCode(200, 'OK')
     request.write('OK')
     request.finish()
     return ''
Exemplo n.º 3
0
    def renderHTTP(self, ctx):
        request = inevow.IRequest(ctx)
        uihelpers.set_nocache_headers(request)

        if not request.args.has_key('name'):
            return rend.NotFound
        name = request.args['name'][0]  # XXX: take first

        if not self.graphs.has_key(name):
            return rend.NotFound
        filename = self.graphs[name]

        return uihelpers.UncachedFile(filename, defaultType='image/png')
Exemplo n.º 4
0
    def renderHTTP(self, ctx):
        request = inevow.IRequest(ctx)
        uihelpers.set_nocache_headers(request)

        if not request.args.has_key('name'):
            return rend.NotFound
        name = request.args['name'][0]  # XXX: take first

        if not self.graphs.has_key(name):
            return rend.NotFound
        filename = self.graphs[name]
        
        return uihelpers.UncachedFile(filename, defaultType='image/png')
Exemplo n.º 5
0
 def _prevent_caching(request):
     uihelpers.set_nocache_headers(request)
Exemplo n.º 6
0
 def _prevent_caching(request):
     uihelpers.set_nocache_headers(request)