* src/GrampsDb/_DbUtils.py: fix index setting of death index

* src/GrampsDb/_WriteGedcom.py: remove redundant birth/death 
	references


svn: r6772
This commit is contained in:
Don Allingham 2006-05-25 02:30:16 +00:00
parent 5017c4a1e7
commit 57bb0ce78c
3 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,7 @@
2006-05-24 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_DbUtils.py: fix index setting of death index
* src/GrampsDb/_WriteGedcom.py: remove redundant birth/death
references
* src/images/stock_notes.png: added
* src/images/Makefile.am: add stock_notes.png
* src/gramps_main.py: register stock_notes as gramps_notes

View File

@ -283,6 +283,7 @@ def set_birth_death_index(db, person):
birth = index
elif int(event.get_type()) == RelLib.EventType.DEATH and death == -1:
death = index
index += 1
person.birth_ref_index = birth
person.death_ref_index = death

View File

@ -907,6 +907,10 @@ class GedcomWriter(UpdateCallback):
for event_ref in person.get_event_ref_list():
event = self.db.get_event_from_handle(event_ref.ref)
if int(event.get_type()) in (RelLib.EventType.BIRTH,
RelLib.EventType.DEATH):
continue
if self.private and event.get_privacy():
continue
val = event.get_type().xml_str()
@ -1359,7 +1363,6 @@ class GedcomWriter(UpdateCallback):
def write_photo(self,photo,level):
photo_obj_id = photo.get_reference_handle()
photo_obj = self.db.get_object_from_handle(photo_obj_id)
print photo_obj, photo_obj.get_mime_type()
if photo_obj:
mime = photo_obj.get_mime_type()
if self.mime2ged.has_key(mime):