Tasks/Task.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2302
f29e9405c851
child 3057
10516539f238
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a class to store task data. 7 Module implementing a class to store task data.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 import os 12 import os
11 import time 13 import time
12 14
13 from PyQt4.QtCore import Qt 15 from PyQt4.QtCore import Qt
45 @param taskType type of the task (one of TypeFixme, TypeTodo, 47 @param taskType type of the task (one of TypeFixme, TypeTodo,
46 TypeWarning, TypeNote) 48 TypeWarning, TypeNote)
47 @param project reference to the project object (Project) 49 @param project reference to the project object (Project)
48 @param description explanatory text of the task (string) 50 @param description explanatory text of the task (string)
49 """ 51 """
50 super().__init__() 52 super(Task, self).__init__()
51 53
52 self.summary = summary 54 self.summary = summary
53 self.description = description 55 self.description = description
54 if priority in [0, 1, 2]: 56 if priority in [0, 1, 2]:
55 self.priority = priority 57 self.priority = priority

eric ide

mercurial