def reindex_missionreport_on_mission_modification(obj, event): for i in obj.values(): if IMissionReport.providedBy(i): i.reindexObject()
def mission_has_missionreport(obj): for i in obj.values(): if IMissionReport.providedBy(i): if api.content.get_state(i) != 'private': return True return False
def mission_report(self): parent = aq_parent(self.context) if IMissionReport.providedBy(parent): return parent return None