Move the stdlib executions into a plugin
This commit is contained in:
1 parent
df55f62ad8
commit
061489ec9a
5 files changed
+48
-41
No files matched your search
@@ -6,5 +6,8 @@ class BasePlugin(object):
|
||||
# In __init__ you can do some caching.
|
||||
self._evaluator = evaluator
|
||||
|
||||
def execute(self, default_callback, arguments):
|
||||
return default_callback(arguments)
|
||||
def execute(self, callback):
|
||||
"""
|
||||
Decorates the execute(context, arguments) function.
|
||||
"""
|
||||
return callback
|
||||
Reference in new issue
Block a user