summaryrefslogtreecommitdiffstats
path: root/todolist.py
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2009-04-16 10:42:24 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2009-04-16 10:42:24 +0200
commit9e4e6b7727df521bd187ca209e2a0ebc10f4a382 (patch)
tree6598f7c232391db821456e55b12ef4b71c0e3a68 /todolist.py
parent188d0883ef4eda09da91cfa6e4cffd583dd999ac (diff)
downloadtodolist-9e4e6b7727df521bd187ca209e2a0ebc10f4a382.tar.gz
todolist-9e4e6b7727df521bd187ca209e2a0ebc10f4a382.tar.xz
todolist-9e4e6b7727df521bd187ca209e2a0ebc10f4a382.zip
first trys
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()