Convert configuration options over to requirements.

This commit is contained in:
Mike Auty
2015-04-06 18:34:13 -05:00
parent 33179fd7d3
commit fcda9febe7
3 changed files with 42 additions and 82 deletions
+5 -8
View File
@@ -33,15 +33,12 @@ class PluginInterface(validity.ValidityRoutines, metaclass = ABCMeta):
return self._context
@abstractmethod
def establish_context(self):
"""Alters the context to ensure the plugin can run.
def requirements(self):
"""Returns a ConfigGroup object to contain the required options"""
pass
This function constructs the necessary symbol spaces that the plugin will need.
"""
@abstractmethod
def plugin_options(self, config_group = None):
"""Modifies the passed in ConfigGroup object to contain the required options"""
def check_requirements(self):
pass
@abstractmethod
def __call__(self, context):