def del_permission_role(self, role, perm_view):
        """
            Remove permission-ViewMenu object to Role

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

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