[Qgis-developer] qgis master dev: postgis changeAttributeValue error

Matthias Kuhn matthias at opengis.ch
Wed May 27 08:48:15 PDT 2015


Hi Marco

Are you sure that you are testing the same thing.
IIRC there are the following methods which can be easily mixed up:

layer.changeAttributeValue()

and

layer.provider().changeAttributeValues()

Best,
Matthias

On 05/27/2015 11:02 AM, marco bra wrote:
> Accessing same postgresql/postgis db
> and using plugin QuickMultiAttributeEdit
>
> 1) all works fine on qgis 2.8.1
>
> 2) using 2.9.0-Master Master, exported
> qgis master dev (next 2.9)
>
> i get
>
> Traceback (most recent call last):
>   File
> "/home/ubuntu/.qgis2/python/plugins/QuickMultiAttributeEdit/quickmultiattributeedit_dialogs.py",
> line 121, in run
>     layer.dataProvider().changeAttributeValue(feature.id
> <http://feature.id>(),nPosField,value)
> AttributeError: 'QgsVectorDataProvider' object has no attribute
> 'changeAttributeValue'
>
>
> The source plugin rows are:
>
> 120.  for feature in oFeaIterator:
> 121.              
> layer.dataProvider().changeAttributeValue(feature.id
> <http://feature.id>(),nPosField,value)
>
>
> There is some changed or can be a bug ?
>
> Thank you
> Marco
>
> -- 
> Linux Infinite Freedom
>
> I'm writing from this place:
> http://www.openstreetmap.org/?lat=44.39945&lon=8.6798&zoom=15&layers=M
>
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150527/95b78743/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150527/95b78743/attachment-0001.pgp>


More information about the Qgis-developer mailing list