utils.py
branchstable
changeset 3364 039d1694f36d
parent 3316 c4c07aab1c39
child 3369 7b88d12b4ee2
child 3371 762a7bc3b73d
--- 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