--- a/src/ldt/ldt/__init__.py Tue Sep 30 16:34:00 2014 +0200
+++ b/src/ldt/ldt/__init__.py Fri Oct 03 11:14:32 2014 +0200
@@ -1,6 +1,6 @@
__all__ = ["VERSION", "get_version", "__version__"]
-VERSION = (1, 53, 11, "final", 0)
+VERSION = (1, 53, 12, "final", 0)
def get_version():
--- a/src/ldt/ldt/ldt_utils/projectserializer.py Tue Sep 30 16:34:00 2014 +0200
+++ b/src/ldt/ldt/ldt_utils/projectserializer.py Fri Oct 03 11:14:32 2014 +0200
@@ -7,6 +7,7 @@
from ldt.ldt_utils.stat import get_string_from_buckets
from ldt.ldt_utils.utils import reduce_text_node
import lxml.etree
+import md5
import uuid
User = get_user_model()
@@ -230,7 +231,8 @@
tag_date = datetime.utcnow().isoformat()
for tag_title in tags_list:
if tag_title not in self.tags:
- tag_id = unicode(uuid.uuid1())
+ # md5 instead of uuid to get an almost unicity
+ tag_id = unicode(md5.new(tag_title.encode('utf-8')).hexdigest())
new_tag = {
"id":tag_id,
"meta" : {