[Twisted-web] Problem with twisted web and adbapi

Søren Bach Christiansen sbc at my-place.biz
Sat Jul 21 11:08:07 EDT 2007


Now it makes sense, specially liked the NOT.DONE.YET variable :) Hole  
thing worked like a charm, thanks a million

/Søren


On Jul 21, 2007, at 16:58 , Phil Mayers wrote:

> 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
>
>
> _______________________________________________
> Twisted-web mailing list
> Twisted-web at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web




More information about the Twisted-web mailing list