Refactored services to inherit from BaseService

This commit is contained in:
2020-05-18 09:43:05 +02:00
parent d080cbb05a
commit c822ff6a7f
15 changed files with 197 additions and 230 deletions
+4 -4
View File
@@ -66,10 +66,10 @@ class PythonEvaluator(OneReturnValueEvaluator):
def get_globals(self, context, node):
my_locals = {
"sheerka": context.sheerka,
"desc": context.sheerka.dump_handler.dump_desc,
"concepts": context.sheerka.dump_handler.dump_concepts,
"history": context.sheerka.dump_handler.dump_history,
"state": context.sheerka.dump_handler.dump_state,
# "desc": context.sheerka.dump_handler.dump_desc,
# "concepts": context.sheerka.dump_handler.dump_concepts,
# "history": context.sheerka.dump_handler.dump_history,
# "state": context.sheerka.dump_handler.dump_state,
"Concept": core.concept.Concept,
"BuiltinConcepts": core.builtin_concepts.BuiltinConcepts,
}