def add_roles(self, user, roles):

        if user not in self.users:
            raise UserNotDefined(user)
        roles = (roles,) if isinstance(roles, six.string_types) else roles
        for role in roles:
            if ',' in role:
                raise BadRoleError('\',\' not allowed in role name (%s) '
                                   'for user %s' % (role, user))
            self.roles[user].add(role)
Adds one or more roles to a user. Adding the
dataset/ETHPy150Open ownaginatious/flask-basic-roles/flask_basic_roles/__init__.py/BasicRoleAuth.add_roles