[Qgis-developer] Retrieving a print composer knowing its name, in Python

2015-07-05 Thread DelazJ
Hi, I have many print composers in a project and would like to select one of them, knowing its name. The only way I found yet is to iterate over all composer views : for cView in iface.activeComposers(): if cView.composerWindow().windowTitle() == 'myTitle': # do what I want Is this the only

Re: [Qgis-developer] Retrieving a print composer knowing its name, in Python

2015-07-14 Thread DelazJ
Hi, No idea? Looking the composer manager code[0], it seems that any action, such as deleting, duplicating or renaming a print composer, is processed through interating over all print composers. No direct access. Am I right? Is there no other way? An equivalent of mapLayersByName ? If not, since pr