(self, context=None, scope=None)
| 88 | LOG.debug("Plugin: %s, Scope: %s" % (p.__name__, p.scope)) |
| 89 | |
| 90 | def run_plugins_pre(self, context=None, scope=None): |
| 91 | if len(self.__plugins) == 0: return |
| 92 | if context: context['scope'] = scope |
| 93 | for p in self.__plugins: |
| 94 | if not scope or p.scope == scope.lower(): |
| 95 | LOG.debug('Running pre-hook for %s at scope %s' % (p.__name__, scope)) |
| 96 | p.run_pre_hook(context=context) |
| 97 | |
| 98 | def run_plugins_post(self, context=None, scope=None): |
| 99 | if len(self.__plugins) == 0: return |
no test coverage detected