コード例 #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={})
コード例 #2
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={})
コード例 #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()
コード例 #4
0
    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()
コード例 #5
0
    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()