I don't think that was on purpose.

The method setPicturePath is still in QgsComposerPicture, but apparently
it's not properly converted to the subclass from QgsCompositionItem.

Might be related to sip like Sandro assumes. We could also check if
something broke with the %ConvertToSubclass code.

Matthias

On 14/07/16 19:40, Tim Sutton wrote:
> Hi All
>
> It seems like something broke in QgsComposition (in 2.16 and master) -
> we have some code like this:
>
> logo = self.composition.getComposerItemById('logo')
> logo.setPicturePath(self.logo_path)
>
>
> Which fails saying that QgsCompositionItem has no method
> setPicturePath. This used to work fine in 2.14 - has anyone else
> encountered this? I know we are breaking API post 2.16 but it would be
> great if this still behaved right - or if someone could indicate the
> preferred way to do this now?
>
> Thanks!
>
> Regards
>
> Tim
>
> —
>
>
>
>
>
>
>
>
> *Tim Sutton*
>
> *Co-founder:* Kartoza
> *Project chair:* QGIS.org <http://qgis.org>
>
> Visit http://kartoza.com <http://kartoza.com/> to find out about open
> source:
>
> Desktop GIS programming services
> Geospatial web development
> GIS Training
> Consulting Services
>
> *Skype*: timlinux 
> *IRC:* timlinux on #qgis at freenode.net <http://freenode.net>
>
> Kartoza is a merger between Linfiniti and Afrispatial
>
>
>
> _______________________________________________
> Qgis-developer mailing list
> [email protected]
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

_______________________________________________
Qgis-developer mailing list
[email protected]
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to