Incomplete file added to sync between computers

This commit is contained in:
Piotr Mitros
2012-01-25 13:59:45 -05:00
parent 5a5e65a918
commit fb2f4b6c1a

19
courseware/progress.py Normal file
View File

@@ -0,0 +1,19 @@
class completion(object):
def __init__(self, d=None):
self.dict = dict()
if d:
self.dict.update(d)
def __getitem__(self, key):
return self.dict[key]
def __setitem__(self, key, value):
self.dict[key] = value
def __add__(self, other):
result = dict()
dict.update(self.dict)
dict.update(other.dict)
def __contains__(self, key):
pass