9522: events gramplet in family view error: 'FamilyEvents' object has no attribute 'cached_start_date'

This commit is contained in:
Doug Blank 2016-08-12 21:45:48 -04:00
parent 50f49781b0
commit 2f142e8966

View File

@ -169,11 +169,10 @@ class PersonEvents(Events):
def update_has_data(self):
active_handle = self.get_active('Person')
active = None
if active_handle:
active = self.dbstate.db.get_person_from_handle(active_handle)
self.set_has_data(self.get_has_data(active))
else:
self.set_has_data(False)
def get_has_data(self, active_person):
"""
@ -248,11 +247,10 @@ class FamilyEvents(Events):
def update_has_data(self):
active_handle = self.get_active('Family')
active = None
if active_handle:
active = self.dbstate.db.get_family_from_handle(active_handle)
self.set_has_data(self.get_has_data(active))
else:
self.set_has_data(False)
def get_has_data(self, active_family):
"""