handle temple not set for LdsOrd

svn: r6272
This commit is contained in:
Don Allingham 2006-04-05 18:48:45 +00:00
parent 5c13395626
commit a817cb4a3d
2 changed files with 9 additions and 11 deletions

View File

@ -1,4 +1,5 @@
2006-04-05 Don Allingham <don@gramps-project.org> 2006-04-05 Don Allingham <don@gramps-project.org>
* src/DisplayTabs.py: handle temple not set for LdsOrd
* src/RelLib/_LdsOrd.py: unserialize returns self * src/RelLib/_LdsOrd.py: unserialize returns self
* src/RelLib/_LdsOrdBase.py: variable name change * src/RelLib/_LdsOrdBase.py: variable name change

View File

@ -1931,17 +1931,14 @@ class LdsModel(gtk.ListStore):
self.db = db self.db = db
for lds_ord in lds_list: for lds_ord in lds_list:
if not lds_ord: self.append(row=[
print "BARF" lds.ord_type[lds_ord.get_type()],
else: DateHandler.get_date(lds_ord),
self.append(row=[ lds.ord_status[lds_ord.get_status()],
lds.ord_type[lds_ord.get_type()], lds.temple_to_abrev.get(lds_ord.get_temple(),_("unknown")),
DateHandler.get_date(lds_ord), self.column_place(lds_ord),
lds.ord_status[lds_ord.get_status()], lds_ord,
lds.temple_to_abrev[lds_ord.get_temple()], ])
self.column_place(lds_ord),
lds_ord,
])
def column_place(self, lds_ord): def column_place(self, lds_ord):
if lds_ord: if lds_ord: