From 8731e42173b396bf7d3787e1d8daeacc612076e2 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sat, 26 Jan 2008 23:53:31 +0000 Subject: [PATCH] Two typos svn: r9939 --- src/plugins/ImportCSV.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/ImportCSV.py b/src/plugins/ImportCSV.py index 27add5601..2bd685ae8 100644 --- a/src/plugins/ImportCSV.py +++ b/src/plugins/ImportCSV.py @@ -153,6 +153,7 @@ def rd(line_number, row, col, key, default = None): def cleanup_column_name(column): """ Handle column aliases """ + retval = column if retval in ["Lastname", "Surname", _("Surname")]: return "surname" @@ -204,7 +205,7 @@ def cleanup_column_name(column): # ---------------------------------- elif retval in ["Mother", _("Mother"), "Wife", _("Wife"), - "Parent2", _("Parent2")): + "Parent2", _("Parent2")]: return "wife" elif retval in ["Father", _("Father"), "Husband", _("Husband"), @@ -268,7 +269,7 @@ def cleanup_column_name(column): # ---------------------------------- elif retval in ["mother", _("mother"), "wife", _("wife"), - "parent2", _("parent2")): + "parent2", _("parent2")]: return "wife" elif retval in ["father", _("father"), "husband", _("husband"),