Skip to content
Snippets Groups Projects
Commit ab3c51fd46bf authored by Sylvain's avatar Sylvain
Browse files

delegate save_state/recover on select to union

parent b1669b4430c7
No related branches found
No related tags found
No related merge requests found
...@@ -490,6 +490,14 @@ ...@@ -490,6 +490,14 @@
yield node yield node
# construction helper methods ############################################# # construction helper methods #############################################
def save_state(self):
"""save the current tree"""
self.parent.save_state()
def recover(self):
"""reverts the tree as it was when save_state() was last called"""
self.parent.recover()
def append_selected(self, term): def append_selected(self, term):
if isinstance(term, nodes.Constant) and term.type == 'etype': if isinstance(term, nodes.Constant) and term.type == 'etype':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment