I am working on python plugins for QGIS.I developed the plugins same as RT SQL LAYER plugins.
When we draw the layers using query builder of "Add Postgis Layer" option,toggle editing option is available for the same.
But when i try to draw layers using RT SQL LAYER plugin ,it is not available for editing. Same happens with my plugins too.
How do I make toggle editing option available for my plugins.?? My plugins are in python.