From 0b24aa2b6a812f1f32b3ce4eb6432bc9d4a06880 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Fri, 5 Oct 2007 09:30:27 +0000 Subject: [PATCH] add comment strings svn: r9079 --- src/GrampsDb/_GrampsDbBase.py | 4 ++++ src/GrampsDb/_GrampsInMemDB.py | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/GrampsDb/_GrampsDbBase.py b/src/GrampsDb/_GrampsDbBase.py index e314b7e1a..62a76afe5 100644 --- a/src/GrampsDb/_GrampsDbBase.py +++ b/src/GrampsDb/_GrampsDbBase.py @@ -2325,9 +2325,13 @@ class GrampsDbBase(GrampsDBCallback): return def report_bm_change(self): + """method that adds 1 to the number of bookmark changes during this session + """ self._bm_changes += 1; def db_has_bm_changes(self): + """method that returns True if there where bookmark changes during the session + """ return self._bm_changes > 0 class Transaction: diff --git a/src/GrampsDb/_GrampsInMemDB.py b/src/GrampsDb/_GrampsInMemDB.py index 70ea4860b..63a7fbd79 100644 --- a/src/GrampsDb/_GrampsInMemDB.py +++ b/src/GrampsDb/_GrampsInMemDB.py @@ -380,6 +380,9 @@ class GrampsInMemDB(GrampsDbBase): return None def db_is_changed(self): + """return True if core data of database has changed in Memory + Note: this excludes most meta-data, you should check that separately + """ return not self.readonly and \ (len(self.undodb) > 0 or not self.abort_possible)