# HG changeset patch # User cavaliet # Date 1412327672 -7200 # Node ID 0a425187f686dba0143bc61aa9d31796decfba25 # Parent 5a0e12655fcd42d92a8b0b03adc1915e25e7d7a3 v1.53.12 : md5 for tag id in cinelab export diff -r 5a0e12655fcd -r 0a425187f686 src/ldt/ldt/__init__.py --- 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(): diff -r 5a0e12655fcd -r 0a425187f686 src/ldt/ldt/ldt_utils/projectserializer.py --- 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" : {