2006-08-21 Don Allingham <don@gramps-project.org>

* src/DisplayModels/_PeopleModel.py: fix handle column after removal
	of cause of death
	* src/GrampsDb/_WriteGedcom.py: handle custome events for people (bug
	# 368)



svn: r7226
This commit is contained in:
Don Allingham 2006-08-22 03:19:37 +00:00
parent caee4c1765
commit b30874dc60
3 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2006-08-21 Don Allingham <don@gramps-project.org>
* src/DisplayModels/_PeopleModel.py: fix handle column after removal
of cause of death
* src/GrampsDb/_WriteGedcom.py: handle custome events for people (bug
# 368)
2006-08-20 Alex Roitman <shura@gramps-project.org> 2006-08-20 Alex Roitman <shura@gramps-project.org>
* src/DataViews/_PersonView.py (column_names): Remove cause of death. * src/DataViews/_PersonView.py (column_names): Remove cause of death.
* src/DisplayModels/_PeopleModel.py (__init__): Update the order * src/DisplayModels/_PeopleModel.py (__init__): Update the order

View File

@ -123,7 +123,7 @@ class PeopleModel(gtk.GenericTreeModel):
_GENDER = [ _(u'female'), _(u'male'), _(u'unknown') ] _GENDER = [ _(u'female'), _(u'male'), _(u'unknown') ]
# dynamic calculation of column indices, for use by various Views # dynamic calculation of column indices, for use by various Views
COLUMN_INT_ID = 13 COLUMN_INT_ID = 12
# indices into main column definition table # indices into main column definition table
COLUMN_DEF_LIST = 0 COLUMN_DEF_LIST = 0

View File

@ -980,6 +980,7 @@ class GedcomWriter(UpdateCallback):
# Actually, it is against the spec to put anything # Actually, it is against the spec to put anything
# after EVEN on the same line, possibly an option is # after EVEN on the same line, possibly an option is
# needed on how to handle this # needed on how to handle this
if event.get_description().strip() != "": if event.get_description().strip() != "":
self.writeln("1 EVEN %s" % self.writeln("1 EVEN %s" %
self.cnvtxt(event.get_description())) self.cnvtxt(event.get_description()))
@ -987,6 +988,8 @@ class GedcomWriter(UpdateCallback):
self.writeln("1 EVEN") self.writeln("1 EVEN")
if val.strip(): if val.strip():
self.writeln("2 TYPE %s" % self.cnvtxt(val)) self.writeln("2 TYPE %s" % self.cnvtxt(val))
else:
self.writeln("2 TYPE %s" % self.cnvtxt(str(event.get_type())))
self.dump_event_stats(event, event_ref) self.dump_event_stats(event, event_ref)