def add_permission_role(self, role, perm_view):
if perm_view not in role.permissions:<EOL><INDENT>try:<EOL><INDENT>role.permissions.append(perm_view)<EOL>role.save()<EOL>log.info(<EOL>c.LOGMSG_INF_SEC_ADD_PERMROLE.format(str(perm_view), role.name)<EOL>)<EOL><DEDENT>except Exception as e:<EOL><INDENT>log.error(c.LOGMSG_ERR_SEC_ADD_PERMROLE.format(str(e)))<EOL><DEDENT><DEDENT>
Add permission-ViewMenu object to Role

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