* src/EditPerson.py: strip names of trailing whitespace before

assigning them


svn: r5999
This commit is contained in:
Don Allingham 2006-02-27 03:29:31 +00:00
parent 94056f3602
commit bf25a9582b
2 changed files with 11 additions and 9 deletions

View File

@ -1,4 +1,6 @@
2006-02-26 Don Allingham <don@gramps-project.org>
* src/EditPerson.py: strip names of trailing whitespace before
assigning them
* src/plugins/ImportGeneWeb.py: handle people with no firstname
or lastname, if encoding fails, attempt and iso-8859-1 conversion

View File

@ -1331,7 +1331,7 @@ class EditPerson:
"""Check to see if any of the data has changed from the
orig record"""
surname = unicode(self.surname.get_text())
surname = unicode(self.surname.get_text().strip())
self.birth_date_object = self.dp.parse(unicode(self.bdate.get_text()))
self.death_date_object = self.dp.parse(unicode(self.ddate.get_text()))
@ -1718,14 +1718,14 @@ class EditPerson:
self.window.hide()
trans = self.db.transaction_begin()
surname = unicode(self.surname.get_text())
suffix = unicode(self.suffix.get_text())
prefix = unicode(self.prefix.get_text())
ntype = unicode(self.ntype_field.child.get_text())
given = unicode(self.given.get_text())
nick = unicode(self.nick.get_text())
title = unicode(self.title.get_text())
idval = unicode(self.gid.get_text())
surname = unicode(self.surname.get_text().strip())
suffix = unicode(self.suffix.get_text().strip())
prefix = unicode(self.prefix.get_text().strip())
ntype = unicode(self.ntype_field.child.get_text().strip())
given = unicode(self.given.get_text().strip())
nick = unicode(self.nick.get_text().strip())
title = unicode(self.title.get_text().strip())
idval = unicode(self.gid.get_text().strip())
name = self.pname