EvalEvaluator is called only if in root context. Added action and action_context to ExecutionContext
This commit is contained in:
@@ -145,7 +145,7 @@ class ExecutionContextHandler(BaseHandler):
|
||||
pickler = self.context
|
||||
|
||||
for prop in CONTEXT_PROPERTIES_TO_SERIALIZE:
|
||||
if prop == "who":
|
||||
if prop in ("who", "action", "action_context"):
|
||||
value = str(getattr(obj, prop))
|
||||
else:
|
||||
value = getattr(obj, prop)
|
||||
@@ -156,7 +156,7 @@ class ExecutionContextHandler(BaseHandler):
|
||||
return data
|
||||
|
||||
def new(self, data):
|
||||
return ExecutionContext(data["who"], None, None)
|
||||
return ExecutionContext(data["who"], None, None, BuiltinConcepts.NOP, None)
|
||||
|
||||
def restore(self, data, instance):
|
||||
pickler = self.context
|
||||
|
||||
Reference in New Issue
Block a user