--- a/hooks-queue.py Wed Aug 24 21:22:05 2016 +0800
+++ b/hooks-queue.py Wed Aug 24 21:26:24 2016 +0800
from candolint.utils import lookup_option, timestamp
-define('listen', metavar='IP', default='127.0.0.1')
-define('port', metavar='PORT', default=8034, type=int)
-define('xheaders', metavar='True|False', default=False, type=bool)
class BaseHookHandler(RequestHandler):
class CandolintHooks(Application):
- def __init__(self, rconn, debug):
+ def __init__(self, rconn, debug=False):
URLSpec(r'/bitbucket', BitbucketHookHandler),
URLSpec(r'/github', GithubHookHandler),
+ define('listen', metavar='IP', default='127.0.0.1')
+ define('port', metavar='PORT', default=8034, type=int)
+ define('xheaders', metavar='True|False', default=False, type=bool)
parser = ArgumentParser(argument_default=SUPPRESS)
'-c', '--config', type=FileType('r'),