Hi Giuseppe On Tue, Oct 5, 2010 at 1:12 AM, Giuseppe Sucameli <[email protected]> wrote: > Hi devs, > > there is a way to load an editable layer without editing capabilities? > I searched for a setCapabilities() method, but nothing. > Reducing the layer capabilities would be useful, especially for plugins, > obviously > without adding new capabilities. > > In a C++ plugin I can extend the concrete DataProvider class. > There is a way to do the same thing in a python plugin? Maybe creating a > wrapper > to the layer dataProvider?
I am not aware of such functionality. But it would be possible to add a pair of methods setReadOnly(bool) and isReadOnly() for the layers. If set as read only, editing would be disabled. Martin _______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
