Hi Pirmin, as I can see in API docs (using your link) there is a note:
Note: This method is deprecated since QGIS 1.8, you should use addMapLayers rather. Regarding PyQGIS CookBook I agree that it should be updated to reflect all API changes. But I think it is better to update it after merging new_vector_api branch 2013/1/24 Pirmin Kalberer <pi...@sourcepole.com>: > Hi Alex, > > Am Donnerstag, 24. Januar 2013, 10.40:00 schrieb Alexander Bruy: >> >> please note that most of this methods were marked as deprecated for >> a long time. Some of them are deprecated since QGIS 1.6 or even >> earlier. > > Where exactly is it marked as deprecated? At least not in the API docs [1]. > And the current PyQGIS cookbook shows it as an example [2]. > I'm only asking for a more user friendly way than having to read the C++ > source code first. > > Pirmin > > [1] > http://qgis.org/api/1.8/classQgsMapLayerRegistry.html#a06a1339cd757608a61e3899a27f39e8a > [2] http://www.qgis.org/pyqgis-cookbook/loadlayer.html#map-layer-registry -- Alexander Bruy _______________________________________________ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer