DictionaryDB: add missing items to make it completely implement API

This commit is contained in:
Doug Blank 2016-04-10 19:22:06 -04:00
parent 35c86d929d
commit 0cd4ee879a

View File

@ -79,6 +79,16 @@ class DictionaryDb(DbGeneric):
self.event_names = set() self.event_names = set()
self.event_role_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): def restore(self):
""" """
If you wish to support an optional restore routine, put it here. If you wish to support an optional restore routine, put it here.
@ -104,7 +114,7 @@ class DictionaryDb(DbGeneric):
""" """
self.transaction = None self.transaction = None
msg = txn.get_description() msg = txn.get_description()
self.undodb.commit(txn, msg) #self.undodb.commit(txn, msg)
self._after_commit(txn) self._after_commit(txn)
txn.clear() txn.clear()
self.has_changed = True self.has_changed = True