Esempio n. 1
0
    def get(self, args, config, connection):
        role = Role(args['name'], connection=connection)
        if not role.exists():
            print("Error: Role does not exist: {0}".format(args['name']))
            sys.exit(1)

        role.read()
        self.jprint(role)
    def get(self, args, config, connection):
        role = Role(args['name'], connection=connection)
        if not role.exists():
            print("Error: Role does not exist: {0}".format(args['name']))
            sys.exit(1)

        role.read()
        self.jprint(role)
    def role(self, role_name, connection=None):
        if connection is None:
            connection = self.connection
            role = Role(role_name, connection)
        else:
            role = User(role_name, connection, False)

        return role.read(connection)
Esempio n. 4
0
    def role(self, role_name, connection=None):
        if connection is None:
            connection = self.connection
            role = Role(role_name, connection)
        else:
            role = User(role_name, connection, False)

        return role.read(connection)