Re: [QGIS-Developer] Python question: QgsVectorLayer object has no attribute 'pendingFields'

2018-01-15 Thread Denis Rouzaud
Hi, For reference, https://github.com/qgis/QGIS/pull/6050 As pointed out, Feature freeze != API freeze. Many issues are still open here https://github.com/qgis/qgis3.0_api/issues Best, Denis Le lun. 15 janv. 2018 à 13:18, Andreas Neumann a écrit : > Hi, > > oh - thanks, Etienne and Alessand

Re: [QGIS-Developer] Python question: QgsVectorLayer object has no attribute 'pendingFields'

2018-01-15 Thread Andreas Neumann
Thanks - that's a good hint! Andreas On 15.01.2018 18:20, Etienne Trimaille wrote: While I'm porting my plugin, I'm usually opening this doc https://github.com/qgis/QGIS/blob/master/doc/api_break.dox Then I search for every new exception I have, I often find a solution there. 2018-01-15 20

Re: [QGIS-Developer] Python question: QgsVectorLayer object has no attribute 'pendingFields'

2018-01-15 Thread Etienne Trimaille
While I'm porting my plugin, I'm usually opening this doc https://github.com/qgis/QGIS/blob/master/doc/api_break.dox Then I search for every new exception I have, I often find a solution there. 2018-01-15 20:14 GMT+03:00 Etienne Trimaille : > pendingFields is gone this morning: https://github.co

Re: [QGIS-Developer] Python question: QgsVectorLayer object has no attribute 'pendingFields'

2018-01-15 Thread Andreas Neumann
Hi, oh - thanks, Etienne and Alessandro. If this change is that recent, than it explains why the API doc and the API break document doesn't mention it: https://qgis.org/api/api_break.html But - aren't we in hard freeze (no more API changes) now since a few days already? Being confused

Re: [QGIS-Developer] Python question: QgsVectorLayer object has no attribute 'pendingFields'

2018-01-15 Thread Etienne Trimaille
pendingFields is gone this morning: https://github.com/qgis/QGIS/pull/6050 Maybe just use `fields()` ? 2018-01-15 20:10 GMT+03:00 Andreas Neumann : > Hi, > > I am trying to fix some Python code that worked before, but not anymore > due to API changes in master meanwhile. > > I am getting a refere

Re: [QGIS-Developer] Python question: QgsVectorLayer object has no attribute 'pendingFields'

2018-01-15 Thread Alessandro Pasotti
On Mon, Jan 15, 2018 at 6:10 PM, Andreas Neumann wrote: > Hi, > > I am trying to fix some Python code that worked before, but not anymore > due to API changes in master meanwhile. > > I am getting a reference to a layer by name and then want to query the > 'pendingFields'. Here is the code I use:

[QGIS-Developer] Python question: QgsVectorLayer object has no attribute 'pendingFields'

2018-01-15 Thread Andreas Neumann
Hi, I am trying to fix some Python code that worked before, but not anymore due to API changes in master meanwhile. I am getting a reference to a layer by name and then want to query the 'pendingFields'. Here is the code I use: - LayerParcels= QgsProject.instance().layer