Re: [Qgis-developer] QgsPluginLayer.writeStyle() must be overridden?

2016-07-06 Thread Minoru Akagi
Hi Nathan and devs,

I've updated my installation (to cdf82a2), and the error has gone away. Great!


Many thanks,
Minoru


2016-07-07 14:09 GMT+09:00 Minoru Akagi :
> Hi Nathan,
>
> 2016-07-07 14:03 GMT+09:00 Nathan Woodrow :
>> Hi,
>>
>> What is the version you are running.  I think that was patched by Martin at
>> one stage.
>
> Revision is 6035f19. Trying to update the qgis-dev package.
>
>
> Thanks,
> Minoru
>
>> On Thu, Jul 7, 2016 at 3:01 PM, Minoru Akagi  wrote:
>>>
>>> Hi devs,
>>>
>>> I'm looking forward to the next wonderful release, and now testing
>>> TileLayerPlugin with qgis-dev (OSGeo4W64), I sometimes encounter the
>>> following error message while loading a project with a plugin layer.
>>>
>>> NotImplementedError: QgsPluginLayer.writeStyle() is abstract and must
>>> be overridden
>>>
>>> According to the API doc [1], QgsMapLayer.writeStyle() has been added
>>> in 2.16 and is reimplemented in QgsVectorLayer and QgsRasterLayer, but
>>> does not seem to be reimplemented in QgsPluginLayer.
>>>
>>> Can QGIS core avoid raising this error? Or should all the subclasses
>>> of QgsPluginLayer override writeStyle()?
>>>
>>> [1] https://qgis.org/api/classQgsMapLayer.html
>>>
>>> Regards,
>>> Minoru
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] QgsPluginLayer.writeStyle() must be overridden?

2016-07-06 Thread Minoru Akagi
Hi Nathan,

2016-07-07 14:03 GMT+09:00 Nathan Woodrow :
> Hi,
>
> What is the version you are running.  I think that was patched by Martin at
> one stage.

Revision is 6035f19. Trying to update the qgis-dev package.


Thanks,
Minoru

> On Thu, Jul 7, 2016 at 3:01 PM, Minoru Akagi  wrote:
>>
>> Hi devs,
>>
>> I'm looking forward to the next wonderful release, and now testing
>> TileLayerPlugin with qgis-dev (OSGeo4W64), I sometimes encounter the
>> following error message while loading a project with a plugin layer.
>>
>> NotImplementedError: QgsPluginLayer.writeStyle() is abstract and must
>> be overridden
>>
>> According to the API doc [1], QgsMapLayer.writeStyle() has been added
>> in 2.16 and is reimplemented in QgsVectorLayer and QgsRasterLayer, but
>> does not seem to be reimplemented in QgsPluginLayer.
>>
>> Can QGIS core avoid raising this error? Or should all the subclasses
>> of QgsPluginLayer override writeStyle()?
>>
>> [1] https://qgis.org/api/classQgsMapLayer.html
>>
>> Regards,
>> Minoru
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] QgsPluginLayer.writeStyle() must be overridden?

2016-07-06 Thread Nathan Woodrow
Hi,

What is the version you are running.  I think that was patched by Martin at
one stage.

On Thu, Jul 7, 2016 at 3:01 PM, Minoru Akagi  wrote:

> Hi devs,
>
> I'm looking forward to the next wonderful release, and now testing
> TileLayerPlugin with qgis-dev (OSGeo4W64), I sometimes encounter the
> following error message while loading a project with a plugin layer.
>
> NotImplementedError: QgsPluginLayer.writeStyle() is abstract and must
> be overridden
>
> According to the API doc [1], QgsMapLayer.writeStyle() has been added
> in 2.16 and is reimplemented in QgsVectorLayer and QgsRasterLayer, but
> does not seem to be reimplemented in QgsPluginLayer.
>
> Can QGIS core avoid raising this error? Or should all the subclasses
> of QgsPluginLayer override writeStyle()?
>
> [1] https://qgis.org/api/classQgsMapLayer.html
>
> Regards,
> Minoru
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] QgsPluginLayer.writeStyle() must be overridden?

2016-07-06 Thread Minoru Akagi
Hi devs,

I'm looking forward to the next wonderful release, and now testing
TileLayerPlugin with qgis-dev (OSGeo4W64), I sometimes encounter the
following error message while loading a project with a plugin layer.

NotImplementedError: QgsPluginLayer.writeStyle() is abstract and must
be overridden

According to the API doc [1], QgsMapLayer.writeStyle() has been added
in 2.16 and is reimplemented in QgsVectorLayer and QgsRasterLayer, but
does not seem to be reimplemented in QgsPluginLayer.

Can QGIS core avoid raising this error? Or should all the subclasses
of QgsPluginLayer override writeStyle()?

[1] https://qgis.org/api/classQgsMapLayer.html

Regards,
Minoru
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer