def del_permission_role(self, role, perm_view):
if perm_view in role.permissions:<EOL><INDENT>try:<EOL><INDENT>role.permissions.remove(perm_view)<EOL>self.get_session.merge(role)<EOL>self.get_session.commit()<EOL>log.info(<EOL>c.LOGMSG_INF_SEC_DEL_PERMROLE.format(str(perm_view), role.name)<EOL>)<EOL><DEDENT>except Exception as e:<EOL><INDENT>log.error(c.LOGMSG_ERR_SEC_DEL_PERMROLE.format(str(e)))<EOL>self.get_session.rollback()<EOL><DEDENT><DEDENT>
Remove permission-ViewMenu object to Role

:param role:
    The role object
:param perm_view:
    The PermissionViewMenu object