9522: events gramplet in family view error: 'FamilyEvents' object has no attribute 'cached_start_date'
This commit is contained in:
parent
50f49781b0
commit
2f142e8966
@ -169,11 +169,10 @@ class PersonEvents(Events):
|
|||||||
|
|
||||||
def update_has_data(self):
|
def update_has_data(self):
|
||||||
active_handle = self.get_active('Person')
|
active_handle = self.get_active('Person')
|
||||||
|
active = None
|
||||||
if active_handle:
|
if active_handle:
|
||||||
active = self.dbstate.db.get_person_from_handle(active_handle)
|
active = self.dbstate.db.get_person_from_handle(active_handle)
|
||||||
self.set_has_data(self.get_has_data(active))
|
self.set_has_data(self.get_has_data(active))
|
||||||
else:
|
|
||||||
self.set_has_data(False)
|
|
||||||
|
|
||||||
def get_has_data(self, active_person):
|
def get_has_data(self, active_person):
|
||||||
"""
|
"""
|
||||||
@ -248,11 +247,10 @@ class FamilyEvents(Events):
|
|||||||
|
|
||||||
def update_has_data(self):
|
def update_has_data(self):
|
||||||
active_handle = self.get_active('Family')
|
active_handle = self.get_active('Family')
|
||||||
|
active = None
|
||||||
if active_handle:
|
if active_handle:
|
||||||
active = self.dbstate.db.get_family_from_handle(active_handle)
|
active = self.dbstate.db.get_family_from_handle(active_handle)
|
||||||
self.set_has_data(self.get_has_data(active))
|
self.set_has_data(self.get_has_data(active))
|
||||||
else:
|
|
||||||
self.set_has_data(False)
|
|
||||||
|
|
||||||
def get_has_data(self, active_family):
|
def get_has_data(self, active_family):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user