in authz.py [0:0]
def main(args):
cfg = yaml.safe_load(open(CONFIG_FNAME))
authz = Authorization(cfg, args.verbose)
### deal with args.templates
if args.test:
# Generate the files, then exit. No daemon.
authz.write_files()
return
username = cfg['server']['username']
password = cfg['server']['password']
topics = set()
topics.add(cfg['commit']['topic'])
topics.add(cfg['ldap']['topic'])
# FUTURE: can add more topics here.
url = cfg['server']['url'] + ','.join(topics)
authz.verbose2('URL:', url)
# Run forever
asfpy.pubsub.listen_forever(authz.handler, url, (username, password),
raw=True)