<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I don't think that was on purpose.<br>
    <br>
    The method setPicturePath is still in QgsComposerPicture, but
    apparently it's not properly converted to the subclass from
    QgsCompositionItem.<br>
    <br>
    Might be related to sip like Sandro assumes. We could also check if
    something broke with the %ConvertToSubclass code.<br>
    <br>
    Matthias<br>
    <br>
    <div class="moz-cite-prefix">On 14/07/16 19:40, Tim Sutton wrote:<br>
    </div>
    <blockquote
      cite="mid:5370AA8D-C019-4E0F-868F-5D62C200C466@kartoza.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      Hi All
      <div class=""><br class="">
      </div>
      <div class="">It seems like something broke in QgsComposition (in
        2.16 and master) - we have some code like this:</div>
      <span class=""><br class="">
      </span><span class="">logo
        = self.composition.getComposerItemById('logo')<br class="">
        logo.setPicturePath(self.logo_path)</span>
      <div class=""><span class=""><br class="">
        </span></div>
      <div class=""><span class=""><br class="">
        </span></div>
      <div class=""><span class="">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?</span></div>
      <div class=""><span class=""><br class="">
        </span></div>
      <div class=""><span class="">Thanks!</span></div>
      <div class=""><span class=""><br class="">
        </span></div>
      <div class=""><span class="">Regards</span></div>
      <div class=""><span class=""><br class="">
        </span></div>
      <div class=""><span class="">Tim<br class="">
          <br class="">
          <div class=""><span>—</span><br class="">
            <br class="">
            <br class="">
            <span style="color: rgb(0, 0, 0); font-family: Helvetica;
              font-size: 12px; font-style: normal; font-variant-caps:
              normal; font-weight: normal; letter-spacing: normal;
              orphans: auto; text-align: center; text-indent: 0px;
              text-transform: none; white-space: normal; widows: auto;
              word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span><span><span><span><img
                        apple-inline="yes"
                        id="BBD2E787-DF25-4883-8D23-14F251F553D2"
                        apple-width="yes" apple-height="yes"
                        src="cid:part1.01050402.05050607@opengis.ch"
                        class="" height="118" width="150"></span>
                    <div style="color: rgb(0, 0, 0); font-family:
                      Helvetica; font-size: 12px; font-style: normal;
                      font-variant-caps: normal; font-weight: normal;
                      letter-spacing: normal; orphans: auto; text-align:
                      center; text-indent: 0px; text-transform: none;
                      white-space: normal; widows: auto; word-spacing:
                      0px; -webkit-text-stroke-width: initial;
                      font-variant-ligatures: normal;
                      font-variant-position: normal;
                      font-variant-numeric: normal;
                      font-variant-alternates: normal;
                      font-variant-east-asian: normal; margin: 0px;
                      line-height: normal; -webkit-text-stroke-color:
                      rgb(0, 0, 0); min-height: 14px;" class=""><br
                        class="Apple-interchange-newline">
                      <br class="Apple-interchange-newline">
                      <br class="Apple-interchange-newline">
                      <br class="Apple-interchange-newline">
                      <br class="">
                    </div>
                    <div style="color: rgb(0, 0, 0); font-family:
                      Helvetica; font-size: 12px; font-style: normal;
                      font-variant-caps: normal; font-weight: normal;
                      letter-spacing: normal; orphans: auto; text-align:
                      center; text-indent: 0px; text-transform: none;
                      white-space: normal; widows: auto; word-spacing:
                      0px; -webkit-text-stroke-width: initial;
                      font-variant-ligatures: normal;
                      font-variant-position: normal;
                      font-variant-numeric: normal;
                      font-variant-alternates: normal;
                      font-variant-east-asian: normal; margin: 0px;
                      line-height: normal; -webkit-text-stroke-color:
                      rgb(0, 0, 0); min-height: 14px;" class=""><br
                        class="">
                    </div>
                    <div style="color: rgb(0, 0, 0); font-family:
                      Helvetica; font-size: 12px; font-style: normal;
                      font-variant-caps: normal; font-weight: normal;
                      letter-spacing: normal; orphans: auto; text-align:
                      center; text-indent: 0px; text-transform: none;
                      white-space: normal; widows: auto; word-spacing:
                      0px; -webkit-text-stroke-width: initial;
                      font-variant-ligatures: normal;
                      font-variant-position: normal;
                      font-variant-numeric: normal;
                      font-variant-alternates: normal;
                      font-variant-east-asian: normal; margin: 0px;
                      line-height: normal; -webkit-text-stroke-color:
                      rgb(0, 0, 0);" class=""><b class="">Tim Sutton</b></div>
                    <div style="color: rgb(0, 0, 0); font-family:
                      Helvetica; font-size: 12px; font-style: normal;
                      font-variant-caps: normal; font-weight: normal;
                      letter-spacing: normal; orphans: auto; text-align:
                      center; text-indent: 0px; text-transform: none;
                      white-space: normal; widows: auto; word-spacing:
                      0px; -webkit-text-stroke-width: initial;
                      font-variant-ligatures: normal;
                      font-variant-position: normal;
                      font-variant-numeric: normal;
                      font-variant-alternates: normal;
                      font-variant-east-asian: normal; margin: 0px;
                      line-height: normal; -webkit-text-stroke-color:
                      rgb(0, 0, 0); min-height: 14px;" class=""><br
                        class="">
                    </div>
                    <div style="color: rgb(0, 0, 0); font-family:
                      Helvetica; font-size: 12px; font-style: normal;
                      font-variant-caps: normal; font-weight: normal;
                      letter-spacing: normal; orphans: auto; text-align:
                      center; text-indent: 0px; text-transform: none;
                      white-space: normal; widows: auto; word-spacing:
                      0px; -webkit-text-stroke-width: initial;
                      font-variant-ligatures: normal;
                      font-variant-position: normal;
                      font-variant-numeric: normal;
                      font-variant-alternates: normal;
                      font-variant-east-asian: normal; margin: 0px;
                      line-height: normal; -webkit-text-stroke-color:
                      rgb(0, 0, 0);" class=""><b class="">Co-founder:</b><span
                        class="Apple-converted-space"> </span>Kartoza</div>
                    <div style="color: rgb(0, 0, 0); font-family:
                      Helvetica; font-size: 12px; font-style: normal;
                      font-variant-caps: normal; font-weight: normal;
                      letter-spacing: normal; orphans: auto; text-align:
                      center; text-indent: 0px; text-transform: none;
                      white-space: normal; widows: auto; word-spacing:
                      0px; -webkit-text-stroke-width: initial;
                      font-variant-ligatures: normal;
                      font-variant-position: normal;
                      font-variant-numeric: normal;
                      font-variant-alternates: normal;
                      font-variant-east-asian: normal; margin: 0px;
                      line-height: normal; -webkit-text-stroke-color:
                      rgb(0, 0, 0);" class=""><b class="">Project chair:</b><span
                        style="font-weight: normal;" class=""><span
                          class="Apple-converted-space"> </span><a
                          moz-do-not-send="true" href="http://qgis.org"
                          class="">QGIS.org</a></span></div>
                    <div style="color: rgb(0, 0, 0); font-family:
                      Helvetica; font-size: 12px; font-style: normal;
                      font-variant-caps: normal; font-weight: normal;
                      letter-spacing: normal; orphans: auto; text-align:
                      center; text-indent: 0px; text-transform: none;
                      white-space: normal; widows: auto; word-spacing:
                      0px; -webkit-text-stroke-width: initial;
                      font-variant-ligatures: normal;
                      font-variant-position: normal;
                      font-variant-numeric: normal;
                      font-variant-alternates: normal;
                      font-variant-east-asian: normal; margin: 0px;
                      line-height: normal; -webkit-text-stroke-color:
                      rgb(0, 0, 0); min-height: 14px;" class=""><br
                        class="">
                    </div>
                    <div style="color: rgb(0, 0, 0); font-family:
                      Helvetica; font-size: 12px; font-style: normal;
                      font-variant-caps: normal; font-weight: normal;
                      letter-spacing: normal; orphans: auto; text-align:
                      center; text-indent: 0px; text-transform: none;
                      white-space: normal; widows: auto; word-spacing:
                      0px; -webkit-text-stroke-width: initial;
                      font-variant-ligatures: normal;
                      font-variant-position: normal;
                      font-variant-numeric: normal;
                      font-variant-alternates: normal;
                      font-variant-east-asian: normal; margin: 0px;
                      line-height: normal; -webkit-text-stroke-color:
                      rgb(0, 0, 0);" class="">Visit <a
                        moz-do-not-send="true"
                        href="http://kartoza.com/" class=""><span
                          style="-webkit-text-stroke-color: rgb(71, 135,
                          255);" class=""><a class="moz-txt-link-freetext" href="http://kartoza.com">http://kartoza.com</a></span></a> to
                      find out about open source:</div>
                    <div style="color: rgb(0, 0, 0); font-family:
                      Helvetica; font-size: 12px; font-style: normal;
                      font-variant-caps: normal; font-weight: normal;
                      letter-spacing: normal; orphans: auto; text-align:
                      center; text-indent: 0px; text-transform: none;
                      white-space: normal; widows: auto; word-spacing:
                      0px; -webkit-text-stroke-width: initial;
                      font-variant-ligatures: normal;
                      font-variant-position: normal;
                      font-variant-numeric: normal;
                      font-variant-alternates: normal;
                      font-variant-east-asian: normal; margin: 0px;
                      line-height: normal; -webkit-text-stroke-color:
                      rgb(0, 0, 0); min-height: 14px;" class=""><br
                        class="">
                    </div>
                    <div style="color: rgb(0, 0, 0); font-family:
                      Helvetica; font-size: 12px; font-style: normal;
                      font-variant-caps: normal; font-weight: normal;
                      letter-spacing: normal; orphans: auto; text-align:
                      center; text-indent: 0px; text-transform: none;
                      white-space: normal; widows: auto; word-spacing:
                      0px; -webkit-text-stroke-width: initial;
                      font-variant-ligatures: normal;
                      font-variant-position: normal;
                      font-variant-numeric: normal;
                      font-variant-alternates: normal;
                      font-variant-east-asian: normal; margin: 0px;
                      line-height: normal; -webkit-text-stroke-color:
                      rgb(0, 0, 0);" class="">Desktop GIS programming
                      services</div>
                    <div style="color: rgb(0, 0, 0); font-family:
                      Helvetica; font-size: 12px; font-style: normal;
                      font-variant-caps: normal; font-weight: normal;
                      letter-spacing: normal; orphans: auto; text-align:
                      center; text-indent: 0px; text-transform: none;
                      white-space: normal; widows: auto; word-spacing:
                      0px; -webkit-text-stroke-width: initial;
                      font-variant-ligatures: normal;
                      font-variant-position: normal;
                      font-variant-numeric: normal;
                      font-variant-alternates: normal;
                      font-variant-east-asian: normal; margin: 0px;
                      line-height: normal; -webkit-text-stroke-color:
                      rgb(0, 0, 0);" class="">Geospatial web development</div>
                    <div style="color: rgb(0, 0, 0); font-family:
                      Helvetica; font-size: 12px; font-style: normal;
                      font-variant-caps: normal; font-weight: normal;
                      letter-spacing: normal; orphans: auto; text-align:
                      center; text-indent: 0px; text-transform: none;
                      white-space: normal; widows: auto; word-spacing:
                      0px; -webkit-text-stroke-width: initial;
                      font-variant-ligatures: normal;
                      font-variant-position: normal;
                      font-variant-numeric: normal;
                      font-variant-alternates: normal;
                      font-variant-east-asian: normal; margin: 0px;
                      line-height: normal; -webkit-text-stroke-color:
                      rgb(0, 0, 0);" class="">GIS Training</div>
                    <div style="color: rgb(0, 0, 0); font-family:
                      Helvetica; font-size: 12px; font-style: normal;
                      font-variant-caps: normal; font-weight: normal;
                      letter-spacing: normal; orphans: auto; text-align:
                      center; text-indent: 0px; text-transform: none;
                      white-space: normal; widows: auto; word-spacing:
                      0px; -webkit-text-stroke-width: initial;
                      font-variant-ligatures: normal;
                      font-variant-position: normal;
                      font-variant-numeric: normal;
                      font-variant-alternates: normal;
                      font-variant-east-asian: normal; margin: 0px;
                      line-height: normal; -webkit-text-stroke-color:
                      rgb(0, 0, 0);" class="">Consulting Services</div>
                    <div style="color: rgb(0, 0, 0); font-family:
                      Helvetica; font-size: 12px; font-style: normal;
                      font-variant-caps: normal; font-weight: normal;
                      letter-spacing: normal; orphans: auto; text-align:
                      center; text-indent: 0px; text-transform: none;
                      white-space: normal; widows: auto; word-spacing:
                      0px; -webkit-text-stroke-width: initial;
                      font-variant-ligatures: normal;
                      font-variant-position: normal;
                      font-variant-numeric: normal;
                      font-variant-alternates: normal;
                      font-variant-east-asian: normal; margin: 0px;
                      line-height: normal; -webkit-text-stroke-color:
                      rgb(0, 0, 0); min-height: 14px;" class=""><br
                        class="">
                    </div>
                    <div style="color: rgb(0, 0, 0); font-family:
                      Helvetica; font-size: 12px; font-style: normal;
                      font-variant-caps: normal; font-weight: normal;
                      letter-spacing: normal; orphans: auto; text-align:
                      center; text-indent: 0px; text-transform: none;
                      white-space: normal; widows: auto; word-spacing:
                      0px; -webkit-text-stroke-width: initial;
                      font-variant-ligatures: normal;
                      font-variant-position: normal;
                      font-variant-numeric: normal;
                      font-variant-alternates: normal;
                      font-variant-east-asian: normal; margin: 0px;
                      line-height: normal; -webkit-text-stroke-color:
                      rgb(0, 0, 0);" class=""><b class="">Skype</b>:
                      timlinux </div>
                    <div style="color: rgb(0, 0, 0); font-family:
                      Helvetica; font-size: 12px; font-style: normal;
                      font-variant-caps: normal; font-weight: normal;
                      letter-spacing: normal; orphans: auto; text-align:
                      center; text-indent: 0px; text-transform: none;
                      white-space: normal; widows: auto; word-spacing:
                      0px; -webkit-text-stroke-width: initial;
                      font-variant-ligatures: normal;
                      font-variant-position: normal;
                      font-variant-numeric: normal;
                      font-variant-alternates: normal;
                      font-variant-east-asian: normal; margin: 0px;
                      line-height: normal; -webkit-text-stroke-color:
                      rgb(0, 0, 0);" class=""><b class="">IRC:</b><span
                        class="Apple-converted-space"> </span>timlinux
                      on #qgis at <a moz-do-not-send="true"
                        href="http://freenode.net" class="">freenode.net</a></div>
                    <div style="color: rgb(0, 0, 0); font-family:
                      Helvetica; font-size: 12px; font-style: normal;
                      font-variant-caps: normal; font-weight: normal;
                      letter-spacing: normal; orphans: auto; text-align:
                      center; text-indent: 0px; text-transform: none;
                      white-space: normal; widows: auto; word-spacing:
                      0px; -webkit-text-stroke-width: initial;
                      font-variant-ligatures: normal;
                      font-variant-position: normal;
                      font-variant-numeric: normal;
                      font-variant-alternates: normal;
                      font-variant-east-asian: normal; margin: 0px;
                      line-height: normal; -webkit-text-stroke-color:
                      rgb(0, 0, 0);" class=""><br class="">
                    </div>
                    <div style="color: rgb(0, 0, 0); font-family:
                      Helvetica; font-size: 12px; font-style: normal;
                      font-variant-caps: normal; font-weight: normal;
                      letter-spacing: normal; orphans: auto; text-align:
                      center; text-indent: 0px; text-transform: none;
                      white-space: normal; widows: auto; word-spacing:
                      0px; -webkit-text-stroke-width: initial;
                      font-variant-ligatures: normal;
                      font-variant-position: normal;
                      font-variant-numeric: normal;
                      font-variant-alternates: normal;
                      font-variant-east-asian: normal; margin: 0px;
                      line-height: normal; -webkit-text-stroke-color:
                      rgb(0, 0, 0);" class="">Kartoza is a merger
                      between Linfiniti and Afrispatial</div>
                  </span></span></span></span></div>
          <br class="">
        </span></div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Qgis-developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
    </blockquote>
    <br>
  </body>
</html>