--- a/hooks-queue.py Wed Jul 20 09:34:13 2016 +0800
+++ b/hooks-queue.py Thu Jul 21 01:09:19 2016 +0800
-class BitbucketHookHandler(RequestHandler):
+class BaseHookHandler(RequestHandler):
+ return self.application.rconn
+class BitbucketHookHandler(BaseHookHandler):
payload = json.loads(self.request.body)
self.finish({'result': 'OK', 'queued': len(hashes)})
- return self.application.rconn
class CandolintHooks(Application):
def __init__(self, rconn, debug):