diff options
Diffstat (limited to 'src/Gui/PluginList.py')
-rw-r--r-- | src/Gui/PluginList.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/Gui/PluginList.py b/src/Gui/PluginList.py index 431a5f62..13c9537f 100644 --- a/src/Gui/PluginList.py +++ b/src/Gui/PluginList.py @@ -33,20 +33,19 @@ class PluginInfoList(list): return else: print "db == None!" - - + def getEnabledPlugins(self): return [x for x in self if x["Enabled"] == 'yes'] - + def getActionPlugins(self): return [x for x in self if x["Enabled"] == 'yes' and x["Type"] == 'Action'] - + def getDatabasePlugins(self): return [x for x in self if x["Enabled"] == 'yes' and x["Type"] == 'Database'] - + def getAnalyzerPlugins(self): return [x for x in self if x["Enabled"] == 'yes' and x["Type"] == 'Analyzer'] - + def getReporterPlugins(self): return [x for x in self if x["Enabled"] == 'yes' and x["Type"] == 'Reporter'] |