diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 8a2f46f6a..ba8e4c67f 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2005-07-13 Don Allingham + * src/GrampsInMemDB.py: add get_event_cursor + * src/GrampsDbBase.py: add get_event_cursor + 2005-07-12 Don Allingham * src/plugins/NavWebPage.py: handle links properly * src/plugins/Makefile.am: export Rebuild.py diff --git a/gramps2/src/GrampsDbBase.py b/gramps2/src/GrampsDbBase.py index 92ce806cc..34d00a207 100644 --- a/gramps2/src/GrampsDbBase.py +++ b/gramps2/src/GrampsDbBase.py @@ -233,6 +233,9 @@ class GrampsDbBase(GrampsDBCallback.GrampsDBCallback): def get_media_cursor(self): assert False, "Needs to be overridden in the derived class" + def get_event_cursor(self): + assert False, "Needs to be overridden in the derived class" + def load(self,name,callback): """ Opens the specified database. The method needs to be overridden diff --git a/gramps2/src/GrampsInMemDB.py b/gramps2/src/GrampsInMemDB.py index 9b12be3ac..8bf3ec6e4 100644 --- a/gramps2/src/GrampsInMemDB.py +++ b/gramps2/src/GrampsInMemDB.py @@ -104,6 +104,9 @@ class GrampsInMemDB(GrampsDbBase): def get_media_cursor(self): return GrampsInMemCursor(self.media_map) + def get_event_cursor(self): + return GrampsInMemCursor(self.event_map) + def close(self): pass