[Twisted-web] Problem with twisted web and adbapi

Phil Mayers p.mayers at imperial.ac.uk
Sat Jul 21 10:58:01 EDT 2007


Oops, sorry that should be:

def render_GET(self, request):
    def cb(data):
        request.write(data)
        request.finish()

    # note, we add our callback to the deferred then discard it
    self.opt.dbpool.runInteraction(blah).addCallback(cb)

    # we *return* a special value
    return server.NOT_DONE_YET




More information about the Twisted-web mailing list