diff options
author | Lucian Branescu Mihaila <lucian.branescu@gmail.com> | 2010-06-24 11:52:15 (GMT) |
---|---|---|
committer | Lucian Branescu Mihaila <lucian.branescu@gmail.com> | 2010-06-24 11:52:15 (GMT) |
commit | 792c135e9aee821bf22640649228d3e5d035f568 (patch) | |
tree | 411af24daa25bb00983f7ad0b36abc2cc95ece68 /model.py | |
parent | 980eaede8bf725f571fb81020d83e3e7702d8c42 (diff) |
Prototype implementation of downloadmanager. Fix initial load bug. Introduce many other bugs. Not tested enough.
Diffstat (limited to 'model.py')
-rw-r--r-- | model.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -17,9 +17,9 @@ # import cjson -import sha import gobject import base64 +from hashlib import sha1 class Model(gobject.GObject): @@ -45,7 +45,7 @@ class Model(gobject.GObject): break self.data['shared_links'].insert(index, - {'hash':sha.new(str(url)).hexdigest(), + {'hash':sha1.new(str(url)).hexdigest(), 'url':str(url), 'title':str(title), 'thumb':base64.b64encode(thumb), 'owner':str(owner), |