From 5f8b21baba2b6ab4b7accbd0114b103b243ce791 Mon Sep 17 00:00:00 2001 From: Martin Sivak Date: Tue, 26 Feb 2008 14:05:37 +0100 Subject: Move the check for root environment into the interpret and utilize flag system for it. Add --info and --list commands for getting the information about plugins. --- pyfirstaidkit/plugins.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pyfirstaidkit/plugins.py') diff --git a/pyfirstaidkit/plugins.py b/pyfirstaidkit/plugins.py index e41f6f1..033e5cc 100644 --- a/pyfirstaidkit/plugins.py +++ b/pyfirstaidkit/plugins.py @@ -47,6 +47,8 @@ class Plugin(object): name = "Plugin" version = "0.0.0" author = "nobody" + description = "" + # # Dictionary that holds all the flows. The keys for each flow is its # name. The flow will be addressed by this name. The plugin developer @@ -375,7 +377,7 @@ class PluginSystem(object): def list(self): """Return the list of imported plugins""" return self._plugins.keys() - + def autorun(self, plugin, flow = None, dependencies = True): """Perform automated run of plugin with condition checking returns - True if conditions are fully satisfied @@ -422,6 +424,6 @@ returns - True if conditions are fully satisfied return True def getplugin(self, plugin): - """Get instance of plugin, so we can call the steps manually""" + """Get top level class of plugin, so we can create the instance and call the steps manually""" return self._plugins[plugin].get_plugin() -- cgit