def dumpcmd(args): log = logging.getLogger("dumpcmd") model = CommunitiesModel().load(args.input) log.info("Initializing the sha1 resolver") communities = BatchedCommunityResolver(model, args.batch, get_db(args), args.tables["meta"]) stream_template(args.template, sys.stdout, communities=communities, model=model, model_path=os.path.abspath(args.input))