fix surname list

svn: r2975
This commit is contained in:
Don Allingham 2004-03-06 04:46:07 +00:00
parent 2389e64bae
commit ae4d1454b2

View File

@ -2493,8 +2493,13 @@ class GrampsDB:
#EARNEY, may eventually be able to use secondary indexes for this
#that way we will not have to track these with code.
def get_surnames(self):
return []
# return self.surnames.keys()
names = self.surnames.keys()
a = {}
for name in names:
a[name] = 1
vals = a.keys()
vals.sort()
return vals
#this function may eventually become obsolete.. if we use
#secondary indexes.