zenodo_accessrequests/receivers.py
def send_accept_notification(request, message=None, expires_at=None):
    """Receiver for request-accepted signal to send email notification."""
    pid, record = get_record(request.recid)
    _send_notification(
        request.sender_email,
        _("Access request accepted"),
        "zenodo_accessrequests/emails/accepted.tpl",
        request=request,
        record=record,
        pid=pid,
        record_link=request.link.get_absolute_url('invenio_records_ui.recid'),
        message=message,
        expires_at=expires_at,
    )
def send_accept_notification(request, message=None, expires_at=None):
    """Receiver for request-accepted signal to send email notification."""
    pid, record = get_record(request.recid)
    _send_notification(
        request.sender_email,
        _("Access request accepted"),
        "zenodo_accessrequests/emails/accepted.tpl",
        request=request,
        record=record,
        pid=pid,
        record_link=request.link.get_absolute_url('invenio_records_ui.recid'),
        message=message,
        expires_at=expires_at,
    )
Receiver for request-accepted signal to send email notification.