From 0cd4ee879a5e552eacd7dec4b2114fa4e8fe776e Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sun, 10 Apr 2016 19:22:06 -0400 Subject: [PATCH] DictionaryDB: add missing items to make it completely implement API --- gramps/plugins/database/dictionarydb.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gramps/plugins/database/dictionarydb.py b/gramps/plugins/database/dictionarydb.py index ffd185b79..54b5abe24 100644 --- a/gramps/plugins/database/dictionarydb.py +++ b/gramps/plugins/database/dictionarydb.py @@ -79,6 +79,16 @@ class DictionaryDb(DbGeneric): self.event_names = set() self.event_role_names = set() + # Attributes: + self.event_attributes = set() + self.family_attributes = set() + self.individual_attributes = set() + self.media_attributes = set() + self.source_attributes = set() + + def get_undodb(self): + return list() + def restore(self): """ If you wish to support an optional restore routine, put it here. @@ -104,7 +114,7 @@ class DictionaryDb(DbGeneric): """ self.transaction = None msg = txn.get_description() - self.undodb.commit(txn, msg) + #self.undodb.commit(txn, msg) self._after_commit(txn) txn.clear() self.has_changed = True