Return proper errors if config is read-only
[cascardo/ipsilon.git] / ipsilon / util / plugin.py
index 063767c..ae98b4c 100755 (executable)
@@ -89,6 +89,10 @@ class PluginLoader(Log):
             self.__data = AdminStore()
         return self.__data
 
+    @property
+    def is_readonly(self):
+        return self._data.is_readonly
+
     def get_plugins(self):
         p = Plugins()
         return p.get_plugins(self._pathname, self._plugin_type, self)
@@ -129,6 +133,10 @@ class PluginObject(Log):
         self._plugins = plugins
         self.is_enabled = False
 
+    @property
+    def is_readonly(self):
+        return self._data.is_readonly
+
     def on_enable(self):
         return