GEDCOM/ANSEL handing, improved list access

svn: r1173
This commit is contained in:
Don Allingham
2002-11-09 18:44:58 +00:00
parent fcc6528af6
commit 47f08c4eb2
12 changed files with 98 additions and 71 deletions

View File

@ -1971,9 +1971,12 @@ class GrampsDB(Persistent):
return self.surnames
def addSurname(self,name):
if name and name not in self.surnames:
self.surnames.append(name)
self.surnames.sort()
try:
if name and name not in self.surnames:
self.surnames.append(name)
self.surnames.sort()
except:
print name
def getBookmarks(self):
"""returns the list of Person instances in the bookmarks"""