Example #1
0
    def delete(self, id):
        """Delete event trigger."""
        acl.enforce('event_trigger:delete', auth_ctx.ctx())

        LOG.info("Delete event trigger [id=%s]", id)

        event_trigger = db_api.get_event_trigger(id)

        triggers.delete_event_trigger(event_trigger.to_dict())
Example #2
0
    def delete(self, id):
        """Delete event trigger."""
        acl.enforce('event_trigger:delete', auth_ctx.ctx())

        LOG.info("Delete event trigger [id=%s]", id)

        with db_api.transaction():
            event_trigger = db_api.get_event_trigger(id)

            triggers.delete_event_trigger(event_trigger.to_dict())
    def delete(self, id):
        """Delete event trigger."""
        acl.enforce('event_triggers:delete', auth_ctx.ctx())

        LOG.debug("Delete event trigger [id=%s]", id)

        with db_api.transaction():
            event_trigger = db_api.get_event_trigger(id)

            triggers.delete_event_trigger(event_trigger.to_dict())
        def _delete_event_trigger():
            with db_api.transaction():
                event_trigger = db_api.get_event_trigger(id)

                triggers.delete_event_trigger(event_trigger.to_dict())
Example #5
0
        def _delete_event_trigger():
            with db_api.transaction():
                event_trigger = db_api.get_event_trigger(id)

                triggers.delete_event_trigger(event_trigger.to_dict())