def _notify_task_added(self, task): info = messages.ConversionTaskInfo(task) message = messages.ConversionTaskCreated(info) message.send_to_frontend()
def _notify_task_changed(self, task): self.emit('task-changed', task) info = messages.ConversionTaskInfo(task) message = messages.ConversionTaskChanged(info) message.send_to_frontend()
def _make_task_infos(self, task_list): return [messages.ConversionTaskInfo(t) for t in task_list]