Move the stdlib executions into a plugin

This commit is contained in:
Dave Halter
2018-07-22 03:38:12 +02:00
parent df55f62ad8
commit 061489ec9a
5 changed files with 48 additions and 41 deletions
+5 -2
View File
@@ -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