From 191137e4af7d96a3a0fc2662d002c89859113c5e Mon Sep 17 00:00:00 2001 From: Richard Taylor Date: Tue, 16 Jan 2007 16:29:12 +0000 Subject: [PATCH] fix get_cursor funcs svn: r7918 --- gramps2/ChangeLog | 3 +++ gramps2/src/Filters/_GenericFilter.py | 14 +++++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index da017817f..9484e7a40 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2007-01-05 Richard Taylor + * src/Filters/_GenericFilter.py: file get_cursor funcs + 2007-01-16 Don Allingham * src/DataViews/_PersonView.py (PersonView): disable cursor diff --git a/gramps2/src/Filters/_GenericFilter.py b/gramps2/src/Filters/_GenericFilter.py index 5aa4da7c5..b00b8d9b4 100644 --- a/gramps2/src/Filters/_GenericFilter.py +++ b/gramps2/src/Filters/_GenericFilter.py @@ -96,7 +96,7 @@ class GenericFilter: def get_rules(self): return self.flist - def get_cursor(db, self): + def get_cursor(self, db): return db.get_person_cursor() def make_obj(self): @@ -209,7 +209,7 @@ class GenericFamilyFilter(GenericFilter): def __init__(self, source=None): GenericFilter.__init__(self, source) - def get_cursor(db, self): + def get_cursor(self, db): return db.get_family_cursor() def make_obj(self): @@ -223,7 +223,7 @@ class GenericEventFilter(GenericFilter): def __init__(self, source=None): GenericFilter.__init__(self, source) - def get_cursor(db, self): + def get_cursor(self, db): return db.get_event_cursor() def make_obj(self): @@ -237,7 +237,7 @@ class GenericSourceFilter(GenericFilter): def __init__(self, source=None): GenericFilter.__init__(self, source) - def get_cursor(db, self): + def get_cursor(self, db): return db.get_source_cursor() def make_obj(self): @@ -251,7 +251,7 @@ class GenericPlaceFilter(GenericFilter): def __init__(self, source=None): GenericFilter.__init__(self, source) - def get_cursor(db, self): + def get_cursor(self, db): return db.get_place_cursor() def make_obj(self): @@ -265,7 +265,7 @@ class GenericMediaFilter(GenericFilter): def __init__(self, source=None): GenericFilter.__init__(self, source) - def get_cursor(db, self): + def get_cursor(self, db): return db.get_media_cursor() def make_obj(self): @@ -279,7 +279,7 @@ class GenericRepoFilter(GenericFilter): def __init__(self, source=None): GenericFilter.__init__(self, source) - def get_cursor(db, self): + def get_cursor(self, db): return db.get_repository_cursor() def make_obj(self):