summaryrefslogtreecommitdiffstats
path: root/todolist.py
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2009-04-16 19:40:39 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2009-04-16 19:40:39 +0200
commit42dcfdbebbbbf8d0ce7d4acdc8507a96911323e0 (patch)
tree3e3993aaf57a8db934c278a7d2a72100bc497c31 /todolist.py
parent9e4e6b7727df521bd187ca209e2a0ebc10f4a382 (diff)
downloadtodolist-42dcfdbebbbbf8d0ce7d4acdc8507a96911323e0.tar.gz
todolist-42dcfdbebbbbf8d0ce7d4acdc8507a96911323e0.tar.xz
todolist-42dcfdbebbbbf8d0ce7d4acdc8507a96911323e0.zip
completed storage magic
Diffstat (limited to '')
-rwxr-xr-xtodolist.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/todolist.py b/todolist.py
index 141f5d1..c062bbf 100755
--- a/todolist.py
+++ b/todolist.py
@@ -1,27 +1,25 @@
#!/usr/bin/python
+# -*- coding: utf-8 -*-
import storage.factory
import item
+import random
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)
+ items += item.item('asda', 12345678, 231)
for i in items:
print i.getTitle()
print i.getCreatedAt()
print i.getPriority()
print '========================================'
+ i.priority = random.randint(0,10)
- items[len(items)-1].id = 'new Title'
- items[len(items)-1].id = 'new Title'
-
return
-
+
if __name__ == '__main__':
main()