I am trying to update multiple values in an edit session via python
 
mc = self.canvas  
layer = mc.currentLayer()
provider = layer.dataProvider()                                         
ob = layer.selectedFeaturesIds() 
fid = int(ob[0])           
newvalues = { fid : { 3 : "lima", 4 : "city"}} 
provider.changeAttributeValues(newvalues)
 
However I am not getting an error nor does the update of the selected feature 
take place.
What is wrong with my code ?
 
Or is there another way of setting field default values ...
 
Thanks
Karsten 
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to