Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def handleResponse(self):
- if (requestIsFinished()):
- self.d.callback(request)
- def foobar(self):
- if (cache.hit)
- addCallback(handleResponse())
- startRequest()
- addCallback(outputResponse)
- else:
- self.d.callback("notcached")
Add Comment
Please, Sign In to add comment