# HG changeset patch # User Sylvain Thénault # Date 1253606698 -7200 # Node ID 039d1694f36deaa2f8ea9c19ee63ef0bcf41482e # Parent d3736311d0c42301ba12d2cd0d2bee3465d53c83 fix uid generation for py >= 2.5 diff -r d3736311d0c4 -r 039d1694f36d utils.py --- a/utils.py Tue Sep 22 10:04:45 2009 +0200 +++ b/utils.py Tue Sep 22 10:04:58 2009 +0200 @@ -118,7 +118,10 @@ else: from uuid import uuid4 def make_uid(key): - return str(key) + str(uuid4()) + # remove dash, generated uid are used as identifier sometimes (sql table + # names at least) + return str(key) + str(uuid4()).replace('-', '') + def dump_class(cls, clsname): """create copy of a class by creating an empty class inheriting