def setTaskStatus(self, taskId, status): task = Task.get(taskId) status = unicode(status) task.status = status if status == "done": task.doneDate = datetime.now()
def editTask(self, taskId): task = Task.get(taskId) dlg = AddTaskDialog(task, self) if dlg.exec_() == QDialog.Accepted: self.updateViewAndKeepPosition()