From 16b1cbfa5032746bbeec35f2cd2f02c2ef2c7b49 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Wed, 11 Nov 2009 13:41:02 +0000 Subject: [PATCH] Added more compatibility to run reports svn: r13553 --- src/web/djangodb.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/web/djangodb.py b/src/web/djangodb.py index 43aaa5b5d..332b71f2c 100644 --- a/src/web/djangodb.py +++ b/src/web/djangodb.py @@ -72,6 +72,10 @@ class DjangoDb(GrampsDbBase): def iter_person_handles(self): return (person.handle for person in self.dji.Person.all()) + def iter_families(self): + return (self.get_family_from_handle(family.handle) + for family in self.dji.Family.all()) + def get_person_from_gramps_id(self, gramps_id): obj = gen.lib.Person() match_list = self.dji.Person.filter(gramps_id=gramps_id)