def init_skype(skp, conf): u''' trac 用初期化 ''' # trac プラグインの設定から拝借 tc = config.get_config('trac') tr = trac.Trac(tc.get('url'), tc.get('realm'), tc.get('user'), tc.get('password')) interval = int(conf.get('interval')) reports = parse_reports(conf.get('reports')) utils.spawn(run, skp, tr, reports, interval)
def start_server(skype, options): app = application.make_application(skype, options) server = simple_server.make_server('', 9000, app) utils.spawn(server.serve_forever)