def main(args): logging.basicConfig(level=logging.DEBUG) config = transifex.config_from_filepath(args[1]) infile = args[2] cursor = get_cursor(config) tx_session = transifex.create_transifex_session(config) do_trophies(cursor, config, tx_session, infile)
def main(args): logging.basicConfig(level=logging.DEBUG) cmd, configpath, user, subject, body = sys.argv config = transifex.config_from_filepath(configpath) session = transifex.create_transifex_session(config) import time; time.sleep(1) post_message(config, session, user, subject, body)
def main(args): logging.basicConfig(level=logging.DEBUG) cmd, configpath, user, subject, body = sys.argv config = transifex.config_from_filepath(configpath) session = transifex.create_transifex_session(config) import time time.sleep(1) post_message(config, session, user, subject, body)
def main(args): logging.basicConfig(level=logging.DEBUG) configpath = args[1] assert args[2] == '--page' page = int(args[3]) outfile = args[4] assert outfile config = transifex.config_from_filepath(configpath) session = transifex.create_transifex_session(config) dump_events(config, session, outfile, end_at=page)