add comment strings

svn: r9079
This commit is contained in:
Benny Malengier 2007-10-05 09:30:27 +00:00
parent 58dfe133c6
commit 0b24aa2b6a
2 changed files with 7 additions and 0 deletions

View File

@ -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:

View File

@ -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)