Esempio n. 1
0
def reindex_missionreport_on_mission_modification(obj, event):
    for i in obj.values():
        if IMissionReport.providedBy(i):
            i.reindexObject()
Esempio n. 2
0
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
Esempio n. 3
0
def reindex_missionreport_on_mission_modification(obj, event):
    for i in obj.values():
        if IMissionReport.providedBy(i):
            i.reindexObject()
Esempio n. 4
0
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
Esempio n. 6
0
 def mission_report(self):
     parent = aq_parent(self.context)
     if IMissionReport.providedBy(parent):
         return parent
     return None