def cmd_pull(argv, path_to_tx): """Pull files from remote server to local repository""" parser = pull_parser() options = parser.parse_args(argv) if options.fetchall and options.languages: parser.error("You can't user a language filter along with the " "-a|--all option") languages = parse_csv_option(options.languages) resources = parse_csv_option(options.resources) pseudo = options.pseudo # Should we download as xliff? xliff = options.xliff parallel = options.parallel skip = options.skip_errors minimum_perc = options.minimum_perc or None _go_to_dir(path_to_tx) # instantiate the project.Project prj = project.Project(path_to_tx) branch = get_branch_from_options(options, prj.root) prj.pull( languages=languages, resources=resources, overwrite=options.overwrite, fetchall=options.fetchall, fetchsource=options.fetchsource, force=options.force, skip=skip, minimum_perc=minimum_perc, mode=options.mode, pseudo=pseudo, xliff=xliff, branch=branch, parallel=parallel, no_interactive=options.no_interactive, ) logger.info("Done.")
def cmd_pull(argv, path_to_tx): "Pull files from remote server to local repository" parser = pull_parser() (options, args) = parser.parse_args(argv) if options.fetchall and options.languages: parser.error("You can't user a language filter along with the"\ " -a|--all option") languages = parse_csv_option(options.languages) resources = parse_csv_option(options.resources) pseudo = options.pseudo skip = options.skip_errors minimum_perc = options.minimum_perc or None try: _go_to_dir(path_to_tx) except UnInitializedError as e: utils.logger.error(e) return # instantiate the project.Project prj = project.Project(path_to_tx) prj.pull( languages=languages, resources=resources, overwrite=options.overwrite, fetchall=options.fetchall, fetchsource=options.fetchsource, force=options.force, skip=skip, minimum_perc=minimum_perc, mode=options.mode, pseudo=pseudo ) logger.info("Done.")
def cmd_pull(argv, path_to_tx): """Pull files from remote server to local repository""" parser = pull_parser() (options, args) = parser.parse_args(argv) if options.fetchall and options.languages: parser.error("You can't user a language filter along with the " "-a|--all option") languages = parse_csv_option(options.languages) resources = parse_csv_option(options.resources) pseudo = options.pseudo skip = options.skip_errors minimum_perc = options.minimum_perc or None try: _go_to_dir(path_to_tx) except UnInitializedError as e: utils.logger.error(e) return # instantiate the project.Project prj = project.Project(path_to_tx) prj.pull(languages=languages, resources=resources, overwrite=options.overwrite, fetchall=options.fetchall, fetchsource=options.fetchsource, force=options.force, skip=skip, minimum_perc=minimum_perc, mode=options.mode, pseudo=pseudo) logger.info("Done.")
def cmd_pull(argv, path_to_tx): "Pull files from remote server to local repository" parser = pull_parser() (options, args) = parser.parse_args(argv) if options.fetchall and options.languages: parser.error("You can't user a language filter along with the"\ " -a|--all option") languages = parse_csv_option(options.languages) resources = parse_csv_option(options.resources) skip = options.skip_errors minimum_perc = options.minimum_perc or None try: _go_to_dir(path_to_tx) except UnInitializedError, e: utils.logger.error(e) return
def cmd_pull(argv, path_to_tx): "Pull files from remote server to local repository" parser = pull_parser() (options, args) = parser.parse_args(argv) if options.fetchall and options.languages: parser.error("You can't user a language filter along with the"\ " -a|--all option") languages = parse_csv_option(options.languages) resources = parse_csv_option(options.resources) skip = options.skip_errors minimum_perc = options.minimum_perc or None try: _go_to_dir(path_to_tx) except UnInitializedError, e: utils.logger.error(e) return