blob: 141f5d19afc60ca30e65ddbf872597dd2a6586a8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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()
|