summaryrefslogtreecommitdiffstats
path: root/todolist.py
diff options
context:
space:
mode:
Diffstat (limited to 'todolist.py')
-rwxr-xr-xtodolist.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/todolist.py b/todolist.py
new file mode 100755
index 0000000..141f5d1
--- /dev/null
+++ b/todolist.py
@@ -0,0 +1,27 @@
+#!/usr/bin/python
+
+import storage.factory
+import item
+
+from time import time
+
+def main():
+ store = storage.factory.getStorage()
+ items = store.load()
+ items += item.item("Test1", time(), 0)
+ items += item.item("Test1", time(), 0)
+ items += item.item("Test1", time(), 0)
+
+ for i in items:
+ print i.getTitle()
+ print i.getCreatedAt()
+ print i.getPriority()
+ print '========================================'
+
+ items[len(items)-1].id = 'new Title'
+ items[len(items)-1].id = 'new Title'
+
+ return
+
+if __name__ == '__main__':
+ main()