summaryrefslogtreecommitdiffstats
path: root/item.py
diff options
context:
space:
mode:
Diffstat (limited to 'item.py')
-rw-r--r--item.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/item.py b/item.py
index 7bcfe18..a6c1cca 100644
--- a/item.py
+++ b/item.py
@@ -4,7 +4,7 @@ import time
class item:
readOnly = ['id']
- def __init__(self, title=None, created=None, priority=None, description=None, completed=None, removed=None, row=None):
+ def __init__(self, title=None, created=None, priority=None, description=None, completed=None, removed=None, due=None, row=None):
self.__dict__['id'] = -1
if title != None:
@@ -14,6 +14,7 @@ class item:
self.description = description
self.completed = completed
self.removed = removed
+ self.due = due
elif row != None:
id = row[0]
@@ -27,6 +28,7 @@ class item:
self.description = ''
self.completed = 0
self.removed = 0
+ self.due = 0
def setId(self, id):
if self.id == -1:
@@ -53,6 +55,9 @@ class item:
def getRemoved(self):
return self.removed
+ def getDue(self):
+ return self.due
+
def __setattr__(self, name, value):
if name not in item.readOnly:
if name not in self.__dict__ or self.__dict__[name] != value: