Ejemplo n.º 1
0
    def arguments(self):
        parser = VirtualConsoleArgumentParser()
        parser.add_argument(
            'paths',
            nargs='+',
            help='Prototype template to be used to find all similar ones')

        group = parser.add_mutually_exclusive_group(required=True)
        group.add_argument(
            '-i',
            action='store_true',
            help='Set object to inherit permissions from its parent(s)',
            default=False)
        group.add_argument(
            '-m',
            action='append',
            help="add an Allow ace: {u:[user]:permspec|g:[group]:permspec}")
        group.add_argument(
            '-d',
            action='append',
            help="add an Deny ace: {u:[user]:permspec|g:[group]:permspec}")
        group.add_argument(
            '-x',
            action='append',
            help="remove an ace: {u:[user]:permspec|g:[group]:permspec}")

        return parser
Ejemplo n.º 2
0
    def arguments(self):
        parser = VirtualConsoleArgumentParser()
        parser.add_argument('paths', nargs='+')
        parser.add_argument('-R',
                            '--recursive',
                            action='store_true',
                            help='Apply permissions recursively')

        group = parser.add_mutually_exclusive_group(required=True)
        group.add_argument(
            '-i',
            '--inherit',
            action='store_true',
            help='Set object to inherit permissions from its parent(s)',
            default=False)
        group.add_argument(
            '-m',
            action='append',
            help="add an Allow ace: {u:[user]:permspec|g:[group]:permspec}")
        group.add_argument(
            '-d',
            action='append',
            help="add an Deny ace: {u:[user]:permspec|g:[group]:permspec}")
        group.add_argument(
            '-x',
            action='append',
            help="remove an ace: {u:[user]:permspec|g:[group]:permspec}")
        return parser
Ejemplo n.º 3
0
    def arguments(self):
        parser = VirtualConsoleArgumentParser()
        parser.add_argument('path')

        group = parser.add_mutually_exclusive_group(required=True)
        group.add_argument('-p', action='store_true', help="Show effective permissions for a given object")
        group.add_argument('-r', action=MergeListAction,
                           help="Check if the user has some rights on a given object")
        return parser
Ejemplo n.º 4
0
    def arguments(self):
        parser = VirtualConsoleArgumentParser()
        parser.add_argument('path')

        group = parser.add_mutually_exclusive_group(required=True)
        group.add_argument(
            '-p',
            action='store_true',
            help="Show effective permissions for a given object")
        group.add_argument(
            '-r',
            action=MergeListAction,
            help="Check if the user has some rights on a given object")
        return parser
Ejemplo n.º 5
0
    def arguments(self):
        parser = VirtualConsoleArgumentParser()
        parser.add_argument('paths', nargs='+')
        parser.add_argument('-R', '--recursive', action='store_true',
                            help='Apply permissions recursively')

        group = parser.add_mutually_exclusive_group(required=True)
        group.add_argument('-i', '--inherit', action='store_true',
                           help='Set object to inherit permissions from its parent(s)',
                           default=False)
        group.add_argument('-m', action='append',
                           help="add an Allow ace: {u:[user]:permspec|g:[group]:permspec}")
        group.add_argument('-d', action='append',
                           help="add an Deny ace: {u:[user]:permspec|g:[group]:permspec}")
        group.add_argument('-x', action='append',
                           help="remove an ace: {u:[user]:permspec|g:[group]:permspec}")
        return parser
Ejemplo n.º 6
0
    def arguments(self):
        parser = VirtualConsoleArgumentParser()
        parser.add_argument('paths', nargs='+',
                            help='Prototype template to be used to find all similar ones')

        group = parser.add_mutually_exclusive_group(required=True)
        group.add_argument('-i', action='store_true',
                           help='Set object to inherit permissions from its parent(s)',
                           default=False)
        group.add_argument('-m', action='append',
                           help="add an Allow ace: {u:[user]:permspec|g:[group]:permspec}")
        group.add_argument('-d', action='append',
                           help="add an Deny ace: {u:[user]:permspec|g:[group]:permspec}")
        group.add_argument('-x', action='append',
                           help="remove an ace: {u:[user]:permspec|g:[group]:permspec}")

        return parser