From 73bbfa09a449fe8f0a35e6ea1e9a52838fb696a8 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Sat, 28 Apr 2007 03:51:19 +0000 Subject: [PATCH] Fix errors in bookmark filters. svn: r8428 --- gramps2/ChangeLog | 5 +++++ .../Person/_IsLessThanNthGenerationAncestorOfBookmarked.py | 2 +- .../Rules/Person/_RelationshipPathBetweenBookmarks.py | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 38c09d86c..1db803d30 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,8 @@ +2007-04-27 Brian Matherly + * src/Filters/Rules/Person/_IsLessThanNthGenerationAncestorOfBookmarked.py: + * src/Filters/Rules/Person/_RelationshopPathBetweenBookmarks.py: + Fix bookmark errors. + 2007-04-27 Brian Matherly * src/plugins/BookReport.py: Fix escape error. diff --git a/gramps2/src/Filters/Rules/Person/_IsLessThanNthGenerationAncestorOfBookmarked.py b/gramps2/src/Filters/Rules/Person/_IsLessThanNthGenerationAncestorOfBookmarked.py index 812444cce..b1f96e3ea 100644 --- a/gramps2/src/Filters/Rules/Person/_IsLessThanNthGenerationAncestorOfBookmarked.py +++ b/gramps2/src/Filters/Rules/Person/_IsLessThanNthGenerationAncestorOfBookmarked.py @@ -58,7 +58,7 @@ class IsLessThanNthGenerationAncestorOfBookmarked(Rule): def prepare(self,db): self.db = db - bookmarks = self.db.get_bookmarks() + bookmarks = db.get_bookmarks().get() if len(bookmarks) == 0: self.apply = lambda db,p : False else: diff --git a/gramps2/src/Filters/Rules/Person/_RelationshipPathBetweenBookmarks.py b/gramps2/src/Filters/Rules/Person/_RelationshipPathBetweenBookmarks.py index fdaabad23..7a358b07b 100644 --- a/gramps2/src/Filters/Rules/Person/_RelationshipPathBetweenBookmarks.py +++ b/gramps2/src/Filters/Rules/Person/_RelationshipPathBetweenBookmarks.py @@ -58,7 +58,7 @@ class RelationshipPathBetweenBookmarks(Rule): def prepare(self,db): self.db = db self.map = {} - bookmarks = self.db.get_bookmarks() + bookmarks = db.get_bookmarks().get() if len(bookmarks) == 0: self.apply = lambda db,p : False else: