web/request.py
changeset 5774 0d792bceb25d
parent 5713 605f571198eb
parent 5770 9e4f8db66962
child 5811 e77cea9721e7
--- a/web/request.py	Thu Jun 17 14:43:16 2010 +0200
+++ b/web/request.py	Thu Jun 17 15:15:52 2010 +0200
@@ -20,7 +20,7 @@
 __docformat__ = "restructuredtext en"
 
 import Cookie
-import sha
+import hashlib
 import time
 import random
 import base64
@@ -364,9 +364,9 @@
 
     def register_onetime_callback(self, func, *args):
         cbname = 'cb_%s' % (
-            sha.sha('%s%s%s%s' % (time.time(), func.__name__,
-                                  random.random(),
-                                  self.user.login)).hexdigest())
+            hashlib.sha('%s%s%s%s' % (time.time(), func.__name__,
+                                      random.random(),
+                                      self.user.login)).hexdigest())
         def _cb(req):
             try:
                 ret = func(req, *args)