* src/ChooseParents.py: build an exclusion list of those

obviously not the parents
* src/EditPerson.py: allow ID value to be edited
* src/RelLib.py: Add try_to_find_from_gramps_id
* src/ImageSelect.py: catch OSError


svn: r3253
This commit is contained in:
Don Allingham
2004-07-09 04:31:43 +00:00
parent 3c108b27b7
commit 1333c80f7f
5 changed files with 46 additions and 11 deletions

View File

@ -1196,7 +1196,7 @@ class Person(SourceNote):
self.urls,
self.lds_bapt, self.lds_endow, self.lds_seal,
self.complete, self.source_list, self.note) = data
def set_complete(self,val):
self.complete = val
@ -2984,6 +2984,18 @@ class GrampsDB:
else:
return None
def try_to_find_person_from_gramps_id(self,val):
"""finds a Person in the database from the passed gramps' ID.
If no such Person exists, a new Person is added to the database."""
data = self.idtrans.get(str(val))
if data:
person = Person()
person.unserialize(cPickle.loads(data))
return person
else:
return None
def find_person_from_gramps_id(self,val,trans):
"""finds a Person in the database from the passed gramps' ID.
If no such Person exists, a new Person is added to the database."""