zenodo_accessrequests/receivers.py
def send_reject_notification(request, message=None):
    """Receiver for request-rejected signal to send email notification."""
    pid, record = get_record(request.recid)
    _send_notification(
        request.sender_email,
        _("Access request rejected"),
        "zenodo_accessrequests/emails/rejected.tpl",
        request=request,
        record=record,
        pid=pid,
        message=message,
    )
def send_reject_notification(request, message=None):
    """Receiver for request-rejected signal to send email notification."""
    pid, record = get_record(request.recid)
    _send_notification(
        request.sender_email,
        _("Access request rejected"),
        "zenodo_accessrequests/emails/rejected.tpl",
        request=request,
        record=record,
        pid=pid,
        message=message,
    )
Receiver for request-rejected signal to send email notification.