Dear Devs,

I’m working to a new plugin for qgis 3.10 that use macro to customize attribute forms behaviour (e.g. openForm, etc…). For security reason, macros are not enabled by default in QGIS and so, each time you open the attribute table/form view, it asks to enable macro. That sounds boring for the final user…

I can manually resolve this modifying the option “enable macros” to “For this session only” or, by PyQgis, editing the QgsSettings, key “qgis/enableMacros” to “SessionOnly” and restore old configuration options after plugin unloads.

The problem is that, during the sessions, all the macros are enabled showing a security issue. Is there a way to run only trusted macros, for example stored under my plugin folder?

Many thanks

enrico

_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to