Skip to content

Commit 961ec37

Browse files
committed
Add undo_reference and undo_data methods to DbGeneric
1 parent 3cc4c95 commit 961ec37

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

gramps/gen/db/generic.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2684,7 +2684,19 @@ def db_has_bm_changes(self):
26842684
def get_undodb(self):
26852685
return self.undodb
26862686

2687-
def undo(self, update_history=True):
2687+
def undo_reference(self, data, handle: AnyHandle):
2688+
"""
2689+
Helper method to undo a reference map entry
2690+
"""
2691+
raise NotImplementedError
2692+
2693+
def undo_data(self, data, handle: AnyHandle, obj_key):
2694+
"""
2695+
Helper method to undo/redo the changes made
2696+
"""
2697+
raise NotImplementedError
2698+
2699+
def undo(self, update_history: bool = True):
26882700
return self.undodb.undo(update_history)
26892701

26902702
def redo(self, update_history=True):

0 commit comments

Comments
 (0)