From: Thierry Parmentelat <thierry.parmentelat@inria.fr>
Date: Wed, 13 Mar 2013 09:23:34 +0000 (+0100)
Subject: proper uuid for queries
X-Git-Tag: myslice-django-0.1-1~23
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=a39d44883f3424d04134e4105873e88336b00795;p=unfold.git

proper uuid for queries
---

diff --git a/engine/manifoldquery.py b/engine/manifoldquery.py
index dfa8b9b3..ab09bfe7 100644
--- a/engine/manifoldquery.py
+++ b/engine/manifoldquery.py
@@ -1,8 +1,8 @@
 import json
+import uuid
 
-# xxx php has uniqid, need to find a module for that
-counter=1
-def uniqid (): global counter; counter += 1; return counter
+def uniqid (): 
+    return uuid.uuid4().hex
 
 class ManifoldQuery: