* src/EditPerson.py: strip names of trailing whitespace before
assigning them svn: r5999
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
2006-02-26 Don Allingham <don@gramps-project.org>
|
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
|
* src/plugins/ImportGeneWeb.py: handle people with no firstname
|
||||||
or lastname, if encoding fails, attempt and iso-8859-1 conversion
|
or lastname, if encoding fails, attempt and iso-8859-1 conversion
|
||||||
|
|
||||||
|
@@ -1331,7 +1331,7 @@ class EditPerson:
|
|||||||
"""Check to see if any of the data has changed from the
|
"""Check to see if any of the data has changed from the
|
||||||
orig record"""
|
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.birth_date_object = self.dp.parse(unicode(self.bdate.get_text()))
|
||||||
self.death_date_object = self.dp.parse(unicode(self.ddate.get_text()))
|
self.death_date_object = self.dp.parse(unicode(self.ddate.get_text()))
|
||||||
|
|
||||||
@@ -1718,14 +1718,14 @@ class EditPerson:
|
|||||||
self.window.hide()
|
self.window.hide()
|
||||||
trans = self.db.transaction_begin()
|
trans = self.db.transaction_begin()
|
||||||
|
|
||||||
surname = unicode(self.surname.get_text())
|
surname = unicode(self.surname.get_text().strip())
|
||||||
suffix = unicode(self.suffix.get_text())
|
suffix = unicode(self.suffix.get_text().strip())
|
||||||
prefix = unicode(self.prefix.get_text())
|
prefix = unicode(self.prefix.get_text().strip())
|
||||||
ntype = unicode(self.ntype_field.child.get_text())
|
ntype = unicode(self.ntype_field.child.get_text().strip())
|
||||||
given = unicode(self.given.get_text())
|
given = unicode(self.given.get_text().strip())
|
||||||
nick = unicode(self.nick.get_text())
|
nick = unicode(self.nick.get_text().strip())
|
||||||
title = unicode(self.title.get_text())
|
title = unicode(self.title.get_text().strip())
|
||||||
idval = unicode(self.gid.get_text())
|
idval = unicode(self.gid.get_text().strip())
|
||||||
|
|
||||||
name = self.pname
|
name = self.pname
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user