Example #1
0
def validate_access(self):
    if IOrganisation.providedBy(self.context):
        return True

    fieldname = getattr(self.data, 'fieldname',
                        getattr(self, 'fieldname', None))
    guarded_getattr(self.context, fieldname)
def validate_access(self):
    if IOrganisation.providedBy(self.context):
        return True

    fieldname = getattr(self.data, 'fieldname',
                        getattr(self, 'fieldname', None))
    guarded_getattr(self.context, fieldname)
Example #3
0
def handle_wf_transition_partners(obj, event):
    if not event.transition:
        return
    if event.transition.id == "submit":
        parent = aq_parent(obj)
        if IOrganisation.providedBy(parent) or IFocalPoint.providedBy(parent) or IMediaPartner.providedBy(parent):
            utils._send_notification(obj, 'mail_content_submitted', parent)
Example #4
0
def handle_wf_transition_partners(obj, event):
    if not event.transition:
        return
    if event.transition.id == "submit":
        parent = aq_parent(obj)
        if IOrganisation.providedBy(parent) or IFocalPoint.providedBy(
                parent) or IMediaPartner.providedBy(parent):
            utils._send_notification(obj, 'mail_content_submitted', parent)