Re: [Qgis-developer] LoadFromTemplate method broken?

2014-12-04 Thread Vincent Damoy
Hello Nyall, Thank you for your answer. I'm really ashamed : It was just a stupid path problem. I had already tried to import new composers created with QGIS 2.6, but trying again put me on the path to the solution. Thank you and really sorry for the noise. Vincent ---

[Qgis-developer] LoadFromTemplate method broken?

2014-12-03 Thread Vincent Damoy
Hello all, Since QGIS 2.6, the LoadFromTemplate method seems not work any more (or works differently?) This is my code to add items in my composer from a template : |self.composition= self.composerView.composition() file1=QtCore.QFile('ComposerTemplate.qpt') doc=QtXml.QDomDocument()

Re: [Qgis-developer] LoadFromTemplate method broken?

2014-12-03 Thread Nyall Dawson
On 4 December 2014 at 02:14, Vincent Damoy vincent.da...@espaces-naturels.fr wrote: Hello all, Since QGIS 2.6, the LoadFromTemplate method seems not work any more (or works differently?) This is my code to add items in my composer from a template : self.composition =