LDS visible tab working better

svn: r1036
This commit is contained in:
Don Allingham 2002-06-18 03:21:50 +00:00
parent e7b3d58d7b
commit 6267a70ccd
2 changed files with 6 additions and 7 deletions

View File

@ -284,10 +284,9 @@ class EditPerson:
self.lds_endowment = self.person.getLdsEndowment() self.lds_endowment = self.person.getLdsEndowment()
self.lds_sealing = self.person.getLdsSeal() self.lds_sealing = self.person.getLdsSeal()
if GrampsCfg.uselds: if GrampsCfg.uselds or self.lds_baptism or self.lds_endowment or self.lds_sealing:
if self.lds_baptism or self.lds_endowment or self.lds_sealing: self.get_widget("lds_tab").show()
self.get_widget("lds_tab").show() self.get_widget("lds_page").show()
self.get_widget("lds_page").show()
types = const.NameTypesMap.keys() types = const.NameTypesMap.keys()
types.sort() types.sort()

View File

@ -361,9 +361,9 @@ class XmlWriter:
sp = " " * index sp = " " * index
self.g.write('%s<event type="%s"%s>\n' % (sp,self.fix(name),conf_priv(event))) self.g.write('%s<event type="%s"%s>\n' % (sp,self.fix(name),conf_priv(event)))
self.write_date(event.getDateObj(),index+1) self.write_date(event.getDateObj(),index+1)
self.write_ref("place",place,index+1) self.write_ref("place",event.getPlace(),index+1)
self.write_line("cause",event.getCause(),index+1) self.write_line("cause",event.getCause(),index+1)
self.write_line("description",description,index+1) self.write_line("description",event.getDescription(),index+1)
if event.getNote(): if event.getNote():
self.write_note("note",event.getNote(),index+1) self.write_note("note",event.getNote(),index+1)