allow no surname list to be created when needed
svn: r16044
This commit is contained in:
parent
209b34f359
commit
9608af29a1
@ -135,7 +135,10 @@ class SurnameBase(object):
|
|||||||
return surname
|
return surname
|
||||||
if self.surname_list:
|
if self.surname_list:
|
||||||
return self.surname_list[0]
|
return self.surname_list[0]
|
||||||
return None
|
else:
|
||||||
|
#self healing, add a surname to this object and return it
|
||||||
|
self.set_surname_list([Surname()])
|
||||||
|
return self.surname_list[0]
|
||||||
|
|
||||||
def set_primary_surname(self, surnamenr=0):
|
def set_primary_surname(self, surnamenr=0):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user