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