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

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

View File

@ -361,9 +361,9 @@ class XmlWriter:
sp = " " * index
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_ref("place",place,index+1)
self.write_ref("place",event.getPlace(),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():
self.write_note("note",event.getNote(),index+1)