Fixed some misbehaviours regarding question() + added #import functionality when restoring
This commit is contained in:
@@ -191,6 +191,7 @@ class ExecutionContext:
|
||||
new.protected_hints.update(self.protected_hints)
|
||||
|
||||
self._children.append(new)
|
||||
|
||||
return new
|
||||
|
||||
def add_preprocess(self, name, **kwargs):
|
||||
@@ -295,6 +296,9 @@ class ExecutionContext:
|
||||
to_str = self.return_value_to_str(r)
|
||||
self._logger.debug(f"[{self._id:2}]" + self._tab + "-> " + to_str)
|
||||
|
||||
def debug(self, text):
|
||||
print(text)
|
||||
|
||||
def get_parent(self):
|
||||
return self._parent
|
||||
|
||||
@@ -309,7 +313,7 @@ class ExecutionContext:
|
||||
def in_private_context(self, concept_key):
|
||||
return concept_key in self.private_hints
|
||||
|
||||
def add_to_private_hints (self, concept_key):
|
||||
def add_to_private_hints(self, concept_key):
|
||||
self.private_hints.add(concept_key)
|
||||
|
||||
def add_to_protected_hints(self, concept_key):
|
||||
|
||||
Reference in New Issue
Block a user