diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 8911c4e5d..358ba52be 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,4 +1,5 @@ 2006-04-05 Don Allingham + * src/DisplayTabs.py: handle temple not set for LdsOrd * src/RelLib/_LdsOrd.py: unserialize returns self * src/RelLib/_LdsOrdBase.py: variable name change diff --git a/gramps2/src/DisplayTabs.py b/gramps2/src/DisplayTabs.py index 02c928a02..8e6b5be41 100644 --- a/gramps2/src/DisplayTabs.py +++ b/gramps2/src/DisplayTabs.py @@ -1931,17 +1931,14 @@ class LdsModel(gtk.ListStore): self.db = db for lds_ord in lds_list: - if not lds_ord: - print "BARF" - else: - self.append(row=[ - lds.ord_type[lds_ord.get_type()], - DateHandler.get_date(lds_ord), - lds.ord_status[lds_ord.get_status()], - lds.temple_to_abrev[lds_ord.get_temple()], - self.column_place(lds_ord), - lds_ord, - ]) + self.append(row=[ + lds.ord_type[lds_ord.get_type()], + DateHandler.get_date(lds_ord), + lds.ord_status[lds_ord.get_status()], + lds.temple_to_abrev.get(lds_ord.get_temple(),_("unknown")), + self.column_place(lds_ord), + lds_ord, + ]) def column_place(self, lds_ord): if lds_ord: