* src/RelLib.py: backout yesterday's change
svn: r2091
This commit is contained in:
parent
9c37c0efc6
commit
e838c771fb
@ -2299,15 +2299,7 @@ class GrampsDB(Persistent):
|
||||
|
||||
def getDefaultPerson(self):
|
||||
"""returns the default Person of the database"""
|
||||
if self.default == None:
|
||||
keys = self.personTable.keys()
|
||||
if len(keys):
|
||||
keys.sort()
|
||||
return self.personMap[keys[0]]
|
||||
else:
|
||||
return None
|
||||
else:
|
||||
return self.default
|
||||
return self.default
|
||||
|
||||
def getPerson(self,id):
|
||||
"""returns a map of gramps's IDs to Person instances"""
|
||||
|
Loading…
Reference in New Issue
Block a user