# HG changeset patch # User Sylvain Thénault # Date 1267020015 -3600 # Node ID 1eaf5ce048446e4a8028dd514a69a2e7b7b5acf5 # Parent 11a040e2601c935c0f88121640036cd79a4a6a0d ensure make_uid return something that may be used as dom id diff -r 11a040e2601c -r 1eaf5ce04844 utils.py --- a/utils.py Wed Feb 24 12:57:53 2010 +0100 +++ b/utils.py Wed Feb 24 15:00:15 2010 +0100 @@ -26,9 +26,11 @@ def make_uid(key): """forge a unique identifier - not that unique on win32""" - msg = str(key) + "%.10f" % time() + str(randint(0, 1000000)) - return md5(msg).hexdigest() + XXX not that unique on win32 + """ + key = str(key) + msg = key + "%.10f" % time() + str(randint(0, 1000000)) + return key + md5(msg).hexdigest() else: