diff --git a/ChangeLog b/ChangeLog index e367129be..21990eca0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-01-18 Douglas S. Blank + * src/plugins/ImportCSV.py (cleanup_column_name): + use given, givenname as aliases for firstname; + give better warning for missing data on row + 2008-01-18 Erik De Richter * /po/nl.po: new translations diff --git a/src/plugins/ImportCSV.py b/src/plugins/ImportCSV.py index 45beaaaca..d095f5086 100644 --- a/src/plugins/ImportCSV.py +++ b/src/plugins/ImportCSV.py @@ -141,7 +141,7 @@ def rd(line_number, row, col, key, default = None): """ Return Row data by column name """ if key in col: if col[key] >= len(row): - print "Error: invalid column reference on line", line_number + print "Warning: missing '%s' on line %d" % (key, line_number) return default retval = row[col[key]].strip() if retval == "": @@ -164,6 +164,8 @@ def cleanup_column_name(column): retval = "husband" elif retval == "parent2": retval = "wife" + elif retval in ["given", "givenname"]: + retval = "firstname" return retval def importData(db, filename, callback=None):