[Zodb-checkins] SVN: ZODB/trunk/src/ZEO/auth/base.py using ZEO.hash

Andreas Jung andreas at andreas-jung.com
Mon Mar 30 16:46:19 EDT 2009


Log message for revision 98632:
  using ZEO.hash
  

Changed:
  U   ZODB/trunk/src/ZEO/auth/base.py

-=-
Modified: ZODB/trunk/src/ZEO/auth/base.py
===================================================================
--- ZODB/trunk/src/ZEO/auth/base.py	2009-03-30 20:44:57 UTC (rev 98631)
+++ ZODB/trunk/src/ZEO/auth/base.py	2009-03-30 20:46:19 UTC (rev 98632)
@@ -18,7 +18,7 @@
 """
 
 import os
-import sha
+from ZEO.hash import sha1
 
 class Client:
     # Subclass should override to list the names of methods that
@@ -113,7 +113,7 @@
         return self._users[username]
 
     def hash(self, s):
-        return sha.new(s).hexdigest()
+        return sha1.new(s).hexdigest()
 
     def add_user(self, username, password):
         if self._users.has_key(username):



More information about the Zodb-checkins mailing list