Hi, Ok for this change, but please take the Server into account, where iface is not usable, but serverIface instead. Please add the activeProject method to the server interface too, as server plugins shall use the project
Regards Michaƫl 2017-12-23 11:23 GMT+01:00 Matthias Kuhn <[email protected]>: > +1 > > for the advantage, that when we go MultiProject we can just add a > activeProjectChanged signal > > Matthias > > > On 12/23/2017 05:40 AM, Nyall Dawson wrote: > > Hi all, > > > > Just wondering... before 3.0 launch, should we remove > > QgsProject.instance() from the Python bindings, in favour of something > > like iface.activeProject()? > > > > Sometime in the future (4.0?) we'll end up killing > > QgsProject.instance(), but in the meantime is it a good move to push > > people away from relying on this method? > > > > I'd say yes, given that the 2.x -> 3.0 api break is so huge anyway and > > will generally result in substantial plugin rewriting (vs just > > modifying a few methods), maybe we're better off to get PyQGIS > > developers to deal with this now and factor it into their new > > designs?* > > > > Nyall > > > > * based on the belief that 3.x -> 4.0 will be a gentler transition!! > > _______________________________________________ > > QGIS-Developer mailing list > > [email protected] > > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer > > > > _______________________________________________ > QGIS-Developer mailing list > [email protected] > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer >
_______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
