Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/model.py
diff options
context:
space:
mode:
authorLucian 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)
commit792c135e9aee821bf22640649228d3e5d035f568 (patch)
tree411af24daa25bb00983f7ad0b36abc2cc95ece68 /model.py
parent980eaede8bf725f571fb81020d83e3e7702d8c42 (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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/model.py b/model.py
index 48e7bdb..38154c4 100644
--- a/model.py
+++ b/model.py
@@ -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),