zenodo_accessrequests/receivers.py
def create_secret_link(request, message=None, expires_at=None):
    """Receiver for request-accepted signal."""
    pid, record = get_record(request.recid)
    if not record:
        raise RecordNotFound(request.recid)

    description = render_template(
        "zenodo_accessrequests/link_description.tpl",
        request=request,
        record=record,
        pid=pid,
        expires_at=expires_at,
        message=message,
    )

    request.create_secret_link(
        record["title"],
        description=description,
        expires_at=expires_at
    )
def create_secret_link(request, message=None, expires_at=None):
    pid, record = get_record(request.recid)
    if not record:
        raise RecordNotFound(request.recid)

    description = render_template(
        "zenodo_accessrequests/link_description.tpl",
        request=request,
        record=record,
        pid=pid,
        expires_at=expires_at,
        message=message,
    )

    request.create_secret_link(
        record["title"],
        description=description,
        expires_at=expires_at
    )
def create_secret_link ( request , message = None , expires_at = None ) : pid , record = get_record ( request . recid ) if not record : raise RecordNotFound ( request . recid ) description = render_template ( "zenodo_accessrequests/link_description.tpl" , request = request , record = record , pid = pid , expires_at = expires_at , message = message , ) request . create_secret_link ( record [ "title" ] , description = description , expires_at = expires_at )
Receiver for request-accepted signal.
Receiver for request - accepted signal .