Ejemplo n.º 1
0
def close_event(event):
    """Close a liveupdate event"""
    event.state = "complete"
    event._commit()

    queries.complete_event(event)

    send_event_broadcast(event._id, type="complete", payload={})
def close_event(event):
    """Close a liveupdate event"""
    event.state = "complete"
    event._commit()

    queries.complete_event(event)

    send_event_broadcast(event._id, type="complete", payload={})
Ejemplo n.º 3
0
    def POST_close_thread(self, form, jquery):
        c.liveupdate_event.state = "complete"
        c.liveupdate_event._commit()

        queries.complete_event(c.liveupdate_event)

        _broadcast(type="complete", payload={})

        form.refresh()
    def POST_close_thread(self, form, jquery):
        """Permanently close the thread, disallowing future updates.

        Requires the `close` permission for this thread.

        """
        c.liveupdate_event.state = "complete"
        c.liveupdate_event._commit()

        queries.complete_event(c.liveupdate_event)

        _broadcast(type="complete", payload={})

        form.refresh()
    def POST_close_thread(self, form, jquery):
        """Permanently close the thread, disallowing future updates.

        Requires the `close` permission for this thread.

        """
        c.liveupdate_event.state = "complete"
        c.liveupdate_event._commit()

        queries.complete_event(c.liveupdate_event)

        _broadcast(type="complete", payload={})

        form.refresh()