* src/plugins/ReadGedcocm.py: Fix callback parameters

svn: r1809
This commit is contained in:
Don Allingham 2003-07-03 02:56:34 +00:00
parent 56dd6eda7a
commit e06284c4c3

View File

@ -176,7 +176,7 @@ def importData(database, filename, cb=None):
statusWindow.destroy() statusWindow.destroy()
cb(1) cb(1)
elif callback: elif callback:
callback(1) callback()
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
@ -701,12 +701,12 @@ class GedcomParser:
except: except:
names = (matches[2],"","","","") names = (matches[2],"","","","")
if names[0]: if names[0]:
name.setFirstName(names[0]) name.setFirstName(names[0].strip())
if names[2]: if names[2]:
name.setSurname(names[2]) name.setSurname(names[2].strip())
self.db.addSurname(names[2]) self.db.addSurname(names[2].strip())
if names[4]: if names[4]:
name.setSuffix(names[4]) name.setSuffix(names[4].strip())
if name_cnt == 0: if name_cnt == 0:
self.person.setPrimaryName(name) self.person.setPrimaryName(name)
else: else: