(self, request, tenant_id, nt_id)
return b''
Delete a notification
Delete a notification
Delete a notification
def delete_notification(self, request, tenant_id, nt_id):
        """
        Delete a notification
        """
        notifications = self._entity_cache_for_tenant(tenant_id).notifications

        try:
            _delete_notification(notifications, nt_id)
        except ObjectDoesNotExist as e:
            request.setResponseCode(e.code)
            self._audit('notifications', request, tenant_id, e.code)
            return json.dumps(e.to_json())

        status = 204
        request.setResponseCode(status)
        self._audit('notifications', request, tenant_id, status)
        request.setHeader(b'content-type', b'text/plain')
        return b''
def delete_notification ( self , request , tenant_id , nt_id ) : notifications = self . _entity_cache_for_tenant ( tenant_id ) . notifications try : _delete_notification ( notifications , nt_id ) except ObjectDoesNotExist as e : request . setResponseCode ( e . code ) self . _audit ( 'notifications' , request , tenant_id , e . code ) return json . dumps ( e . to_json ( ) ) status = 204 request . setResponseCode ( status ) self . _audit ( 'notifications' , request , tenant_id , status ) request . setHeader ( b'content-type' , b'text/plain' ) return b''