# HG changeset patch # User durandn # Date 1441296173 -7200 # Node ID 09d4840f213e1a2e21730e8ef2293def1659640e # Parent 337fb3ff4e18607b36d3270e88a4d83b89c4715b Added idProject property to ensemble node in ldt xml when ensemble node is created via LdtAnnotation object diff -r 337fb3ff4e18 -r 09d4840f213e src/ldt/ldt/ldt_utils/utils.py --- a/src/ldt/ldt/ldt_utils/utils.py Thu Sep 03 12:29:51 2015 +0200 +++ b/src/ldt/ldt/ldt_utils/utils.py Thu Sep 03 18:02:53 2015 +0200 @@ -275,6 +275,7 @@ path_ensemble.set('title', _('Personal cutting')) path_ensemble.set('author', 'IRI') path_ensemble.set('abstract', 'IRI') + path_ensemble.set('idProject', self.project.ldt_id) path_ensemble = [path_ensemble] #else: # path_ensemble = path_content[0].xpath('ensemble') @@ -379,7 +380,7 @@ self.update_annotation_element(element, title, text, begin, dur, author, date, color, audio_src, audio_href, tags_list) return ensemble_id - + def save(self, must_reindex=True): if self.to_add: self.project.ldt = lxml.etree.tostring(self.ldtdoc, pretty_print=True)