From d0ae0cdaeab3a9dc423863ccfcf53758c59b79bf Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 22 Dec 2009 01:21:13 +0000 Subject: [PATCH] Change to go with fallback update svn: r13882 --- src/web/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/web/utils.py b/src/web/utils.py index 4bc414d7e..06a7c1237 100644 --- a/src/web/utils.py +++ b/src/web/utils.py @@ -58,6 +58,7 @@ import DbState import DateHandler from gen.lib.date import Date as GDate, Today import gen.lib +from gen.utils import get_birth_or_fallback, get_death_or_fallback from gen.plug import BasePluginManager from cli.grampscli import CLIManager @@ -476,14 +477,14 @@ def get_title(place): def person_get_birth_date(person): db = DjangoDb() - event = db.get_birth_or_fallback(person) + event = get_birth_or_fallback(db, person) if event: return event.date return None def person_get_death_date(person): db = DjangoDb() - event = db.get_death_or_fallback(person) + event = get_death_or_fallback(db, person) if event: return event.date return None