示例#1
0
    def POST_close_thread(self, form, jquery):
        """Permanently close the thread, disallowing future updates.

        Requires the `close` permission for this thread.

        """
        close_event(c.liveupdate_event)
        liveupdate_events.close_event(context=c, request=request)

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

        Requires the `close` permission for this thread.

        """
        close_event(c.liveupdate_event)
        liveupdate_events.close_event(context=c, request=request)

        form.refresh()
示例#3
0
 def test_close_event(self):
     g.live_config["events_collector_liveupdate_close_sample_rate"] = 1.0
     self.context.liveupdate_event = self.liveevent
     events.close_event(
         context=self.context,
         request=self.request
     )
     g.events.queue_production.assert_event_item(
         dict(
             event_topic="live_thread_events",
             event_type="live_thread_close",
             payload=self.make_payload(),
         )
     )
    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={})
        liveupdate_events.close_event(context=c, request=request)

        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={})
        liveupdate_events.close_event(context=c, request=request)

        form.refresh()