Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webactivity.py
diff options
context:
space:
mode:
authorLucian Branescu Mihaila <lucian.branescu@gmail.com>2010-07-22 16:05:42 (GMT)
committer Lucian Branescu Mihaila <lucian.branescu@gmail.com>2010-07-22 16:05:42 (GMT)
commit718d846734fbb4ea6688cdcac35e44bf26a095b1 (patch)
treefed38f3430d7266a7b18e52821485c1fc1012baa /webactivity.py
parent53605902a0d842cb04c1f9378844e3afec33db8e (diff)
Fix sha1 import issue.
Diffstat (limited to 'webactivity.py')
-rw-r--r--webactivity.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/webactivity.py b/webactivity.py
index 4ebfdf0..963bea8 100644
--- a/webactivity.py
+++ b/webactivity.py
@@ -83,7 +83,7 @@ def _seed_xs_cookie():
pubkey = profile.get_profile().pubkey
cookie_data = {'color': profile.get_color().to_string(),
- 'pkey_hash': sha1.new(pubkey).hexdigest()}
+ 'pkey_hash': sha1(pubkey).hexdigest()}
# TODO set cookie for webkit
@@ -401,9 +401,9 @@ class WebActivity(activity.Activity):
uri = browser.props.uri
for link in self.model.data['shared_links']:
- if link['hash'] == sha1.new(uri).hexdigest():
+ if link['hash'] == sha1(uri).hexdigest():
_logger.debug('_add_link: link exist already a=%s b=%s' %(
- link['hash'], sha1.new(uri).hexdigest()))
+ link['hash'], sha1(uri).hexdigest()))
return
buf = self._get_screenshot()
timestamp = time.time()