Beispiel #1
0
def setup_argparser(commands):
    command = commands.add_parser(
        'install',
        help='Install upgrades or profiles.',
        description=DOCS)
    command.set_defaults(func=install_command)
    add_requestor_authentication_argument(command)
    add_site_path_argument(command)

    command.add_argument('--force', '-f', action='store_true',
                         dest='force_reinstall',
                         default=False,
                         help='Force reinstall already installed profiles.')

    group = command.add_mutually_exclusive_group(required=True)
    group.add_argument('--upgrades', '-u', nargs='+',
                       help='One or many upgrade step API ids.',
                       type=valid_upgrade_step_id,
                       metavar='UPGRADE-STEP')
    group.add_argument('--proposed', '-p', nargs='*',
                       help='Installs all proposed upgrades of all or specific profiles.',
                       metavar='PROFILE')
    group.add_argument('--profiles', nargs='+',
                       help='One or many profile ids.',
                       type=valid_profile_id,
                       metavar='PROFILE')

    command.add_argument('--skip-deferrable', '-D',
                         help='Do not propose deferrable upgrades. Only takes '
                              'effect if specified in combination with '
                              '--proposed.',
                         default=False,
                         dest='skip_deferrable',
                         action='store_true')
Beispiel #2
0
def setup_argparser(commands):
    command = commands.add_parser('plone_upgrade_needed',
                                  help='Should the Plone site be upgraded?',
                                  description=DOCS)
    command.set_defaults(func=plone_upgrade_command)
    add_requestor_authentication_argument(command)
    add_site_path_argument(command)
def setup_argparser(commands):
    command = commands.add_parser('plone_upgrade',
                                  help='Upgrade Plone Site.',
                                  description=DOCS)
    command.set_defaults(func=plone_upgrade_command)
    add_requestor_authentication_argument(command)
    add_site_path_argument(command)
Beispiel #4
0
def setup_argparser(commands):
    command = commands.add_parser('install',
                                  help='Install upgrades or profiles.',
                                  description=DOCS)
    command.set_defaults(func=install_command)
    add_requestor_authentication_argument(command)
    add_site_path_argument(command)

    command.add_argument('--force',
                         '-f',
                         action='store_true',
                         dest='force_reinstall',
                         default=False,
                         help='Force reinstall already installed profiles.')

    group = command.add_mutually_exclusive_group(required=True)
    group.add_argument('--upgrades',
                       '-u',
                       nargs='+',
                       help='One or many upgrade step API ids.',
                       type=valid_upgrade_step_id,
                       metavar='UPGRADE-STEP')
    group.add_argument(
        '--proposed',
        '-p',
        nargs='*',
        help='Installs all proposed upgrades of all or specific profiles.',
        metavar='PROFILE')
    group.add_argument('--profiles',
                       nargs='+',
                       help='One or many profile ids.',
                       type=valid_profile_id,
                       metavar='PROFILE')
Beispiel #5
0
def setup_argparser(commands):
    command = commands.add_parser(
        'recook',
        help='Recook CSS and JavaScript resource bundles.',
        description=DOCS)
    command.set_defaults(func=recook_command)
    add_requestor_authentication_argument(command)
    add_site_path_argument(command)
def setup_argparser(commands):
    command = commands.add_parser(
        'combine_bundles',
        help='Combine JS/CSS bundles together (Plone 5).',
        description=DOCS)
    command.set_defaults(func=combine_bundles)
    add_requestor_authentication_argument(command)
    add_site_path_argument(command)
def setup_argparser(commands):
    command = commands.add_parser(
        'plone_upgrade_needed',
        help='Should the Plone site be upgraded?',
        description=DOCS)
    command.set_defaults(func=plone_upgrade_command)
    add_requestor_authentication_argument(command)
    add_site_path_argument(command)
Beispiel #8
0
def setup_argparser(commands):
    command = commands.add_parser(
        'recook',
        help='Recook CSS and JavaScript resource bundles.',
        description=DOCS)
    command.set_defaults(func=recook_command)
    add_requestor_authentication_argument(command)
    add_site_path_argument(command)
Beispiel #9
0
def setup_argparser(commands):
    command = commands.add_parser(
        'plone_upgrade',
        help='Upgrade Plone Site.',
        description=DOCS)
    command.set_defaults(func=plone_upgrade_command)
    add_requestor_authentication_argument(command)
    add_site_path_argument(command)
Beispiel #10
0
def setup_argparser(commands):
    command = commands.add_parser('install',
                                  help='Install upgrades or profiles.',
                                  description=DOCS)
    command.set_defaults(func=install_command)
    add_requestor_authentication_argument(command)
    add_site_path_argument(command)

    command.add_argument('--force',
                         '-f',
                         action='store_true',
                         dest='force_reinstall',
                         default=False,
                         help='Force reinstall already installed profiles.')

    group = command.add_mutually_exclusive_group(required=True)
    group.add_argument('--upgrades',
                       '-u',
                       nargs='+',
                       help='One or many upgrade step API ids.',
                       type=valid_upgrade_step_id,
                       metavar='UPGRADE-STEP')
    group.add_argument(
        '--proposed',
        '-p',
        nargs='*',
        help='Installs all proposed upgrades of all or specific profiles.',
        metavar='PROFILE')
    group.add_argument('--profiles',
                       nargs='+',
                       help='One or many profile ids.',
                       type=valid_profile_id,
                       metavar='PROFILE')

    command.add_argument('--skip-deferrable',
                         '-D',
                         help='Do not propose deferrable upgrades. Only takes '
                         'effect if specified in combination with '
                         '--proposed.',
                         default=False,
                         dest='skip_deferrable',
                         action='store_true')

    command.add_argument('--allow-outdated',
                         help='Allow installing on outdated Plone site. '
                         'By default we do not allow this, '
                         'because it is better to first run the '
                         'plone_upgrade command.',
                         default=False,
                         dest='allow_outdated',
                         action='store_true')

    command.add_argument('--intermediate-commit',
                         help='Commit after installing an upgrade step.',
                         default=False,
                         dest='intermediate_commit',
                         action='store_true')
Beispiel #11
0
def setup_argparser(commands):
    command = commands.add_parser(
        'install',
        help='Install upgrades.',
        description=DOCS)
    command.set_defaults(func=install_command)
    add_requestor_authentication_argument(command)
    add_site_path_argument(command)

    group = command.add_mutually_exclusive_group(required=True)
    group.add_argument('--upgrades', '-u', nargs='+',
                       help='One or many upgrade step API ids.',
                       type=valid_upgrade_step_id)
    group.add_argument('--proposed', '-p', action='store_true',
                       help='Installs all proposed upgrades.')
Beispiel #12
0
def setup_argparser(commands):
    command = commands.add_parser(
        'list',
        help='List upgrades or profiles.',
        description=DOCS)
    command.set_defaults(func=list_command)
    add_requestor_authentication_argument(command)
    add_site_path_argument(command)
    add_json_argument(command)

    group = command.add_mutually_exclusive_group(required=True)
    group.add_argument('--upgrades', '-u',
                       help='List all proposed upgrades.',
                       dest='action',
                       action='store_const',
                       const='list_proposed_upgrades')

    group.add_argument('--profiles', '-p',
                       help='List all installed profiles.',
                       dest='action',
                       action='store_const',
                       const='list_profiles')
Beispiel #13
0
def setup_argparser(commands):
    command = commands.add_parser('list',
                                  help='List upgrades or profiles.',
                                  description=DOCS)
    command.set_defaults(func=list_command)
    add_requestor_authentication_argument(command)
    add_site_path_argument(command)
    add_json_argument(command)

    group = command.add_mutually_exclusive_group(required=True)
    group.add_argument('--upgrades',
                       '-u',
                       help='List all proposed upgrades.',
                       dest='action',
                       action='store_const',
                       const='list_proposed_upgrades')

    group.add_argument('--profiles',
                       '-p',
                       help='List all installed profiles.',
                       dest='action',
                       action='store_const',
                       const='list_profiles')