From e7d4833ea894d5a7aceb54aa23cb7b77998304d9 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Fri, 8 Jun 2012 18:40:21 +0000 Subject: [PATCH] Pass in request to check_preferred svn: r19798 --- src/webapp/grampsdb/view/person.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/webapp/grampsdb/view/person.py b/src/webapp/grampsdb/view/person.py index 05f7cd413..8b4e3211e 100644 --- a/src/webapp/grampsdb/view/person.py +++ b/src/webapp/grampsdb/view/person.py @@ -82,7 +82,7 @@ def check_primary(surname, surnames): if not ok: surname.primary = True -def check_preferred(name, person): +def check_preferred(request, name, person): """ Check for a proper preferred name. """ @@ -304,7 +304,7 @@ def process_name(request, handle, order, action="view"): name.suffix = nf.cleaned_data["suffix"] if nf.cleaned_data["suffix"] != " suffix " else "" name.preferred = True # FIXME: why is this False? update_last_changed(name, request.user.username) - check_preferred(name, person) + check_preferred(request, name, person) name.save() # Process data: oldsurname.name = name @@ -381,7 +381,7 @@ def process_person(request, context, handle, action, add_to=None): # view, edit, # Manually set any data: name.suffix = nf.cleaned_data["suffix"] if nf.cleaned_data["suffix"] != " suffix " else "" name.preferred = True # FIXME: why is this False? - check_preferred(name, person) + check_preferred(request, name, person) update_last_changed(name, request.user.username) name.save() # Process data: