src/pds_doi_service/core/db/transaction_on_disk.py
def output_label_for_transaction(transaction_record):
        """
        Returns a path to the output label associated to the provided transaction
        record.

        Parameters
        ----------
        transaction_record : DoiRecord
            Details of a transaction as returned from a list request.

        Returns
        -------
        label_file : str
            Path to the output label associated to the provided transaction record.

        Raises
        ------
        NoTransactionHistoryForIdentifierException
            If the output label associated to the transaction cannot be found
            on local disk.

        """
        # TODO: reconcile this method with the version in the list action
        # Make sure we can locate the output label associated with this
        # transaction
        transaction_location = transaction_record.transaction_key
        label_files = glob.glob(join(transaction_location, "output.*"))

        if not label_files or not exists(label_files[0]):
            raise NoTransactionHistoryForIdentifierException(
                f"Could not find a DOI label associated with identifier {transaction_record.identifier}. "
                "The database and transaction history location may be out of sync."
            )

        label_file = label_files[0]

        return label_file

        Returns a path to the output label associated to the provided transaction
        record.

        Parameters
        ----------
        transaction_record : DoiRecord
            Details of a transaction as returned from a list request.

        Returns
        -------
        label_file : str
            Path to the output label associated to the provided transaction record.

        Raises
        ------
        NoTransactionHistoryForIdentifierException
            If the output label associated to the transaction cannot be found
            on local disk.

        
Returns a path to the output label associated to the provided transaction
record.

Parameters

transaction_record : DoiRecord
Details of a transaction as returned from a list request.

Returns

label_file : str
Path to the output label associated to the provided transaction record.

Raises

NoTransactionHistoryForIdentifierException
If the output label associated to the transaction cannot be found
on local disk.
Returns a path to the output label associated to the provided transaction record . Parameters transaction_record : DoiRecord Details of a transaction as returned from a list request . Returns label_file : str Path to the output label associated to the provided transaction record . Raises NoTransactionHistoryForIdentifierException If the output label associated to the transaction cannot be found on local disk .
def output_label_for_transaction(transaction_record):
        transaction_location = transaction_record.transaction_key
        label_files = glob.glob(join(transaction_location, "output.*"))
        if not label_files or not exists(label_files[0]):
            raise NoTransactionHistoryForIdentifierException(
                f"Could not find a DOI label associated with identifier {transaction_record.identifier}. "
                "The database and transaction history location may be out of sync."
            )
        label_file = label_files[0]
        return label_file
def output_label_for_transaction ( transaction_record ) : transaction_location = transaction_record . transaction_key label_files = glob . glob ( join ( transaction_location , "output.*" ) ) if not label_files or not exists ( label_files [ 0 ] ) : raise NoTransactionHistoryForIdentifierException ( f"Could not find a DOI label associated with identifier {transaction_record.identifier}. " "The database and transaction history location may be out of sync." ) label_file = label_files [ 0 ] return label_file
Returns a path to the output label associated to the provided transaction
record.
Returns a path to the output label associated to the provided transaction record .
"""
        Returns a path to the output label associated to the provided transaction
        record.

        Parameters
        ----------
        transaction_record : DoiRecord
            Details of a transaction as returned from a list request.

        Returns
        -------
        label_file : str
            Path to the output label associated to the provided transaction record.

        Raises
        ------
        NoTransactionHistoryForIdentifierException
            If the output label associated to the transaction cannot be found
            on local disk.

        """ # TODO: reconcile this method with the version in the list action # Make sure we can locate the output label associated with this # transaction
transaction_record