Commit bb1c06a8 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

remove deprecation warning.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43765 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 765bdbdb
...@@ -35,7 +35,8 @@ from Products.ERP5Type.Tool.BaseTool import BaseTool ...@@ -35,7 +35,8 @@ from Products.ERP5Type.Tool.BaseTool import BaseTool
from Products.ERP5Type import Permissions from Products.ERP5Type import Permissions
from Products.ERP5 import _dtmldir from Products.ERP5 import _dtmldir
from zLOG import LOG, INFO from zLOG import LOG, INFO
import time, random, md5 import time, random
from hashlib import md5 as md5_new
from DateTime import DateTime from DateTime import DateTime
from Products.ERP5Type.Message import translateString from Products.ERP5Type.Message import translateString
from Acquisition import aq_base from Acquisition import aq_base
...@@ -196,7 +197,7 @@ class PasswordTool(BaseTool): ...@@ -196,7 +197,7 @@ class PasswordTool(BaseTool):
# if we can't get a network address, just imagine one # if we can't get a network address, just imagine one
a = random.random()*100000000000000000L a = random.random()*100000000000000000L
data = ' '.join((str(t), str(r), str(a), str(args))) data = ' '.join((str(t), str(r), str(a), str(args)))
data = md5.md5(data).hexdigest() data = md5_new(data).hexdigest()
return data return data
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment