recover_backup/input/check_recovery_start.py
def check_recovery_start(mps_to_recover):
    """
    Present the media packages about to be recovered to the user and ask whether a recovery should be attempted under
    these circumstances.

    :param mps_to_recover: The media packages that can be recovered.
    :type mps_to_recover: list
    :return: Whether the recovery should be started.
    :rtype: bool
    """

    print()
    print("The following media packages can be recovered:")
    print("Media package                        | Version | Path")

    for mp in mps_to_recover:
        print("%36s | %7s | %s" % (mp.id, mp.version, mp.path))
    print()

    start_recover = get_yes_no_answer("Start recovery?")

    return start_recover

    Present the media packages about to be recovered to the user and ask whether a recovery should be attempted under
    these circumstances.

    :param mps_to_recover: The media packages that can be recovered.
    :type mps_to_recover: list
    :return: Whether the recovery should be started.
    :rtype: bool
    
Present the media packages about to be recovered to the user and ask whether a recovery should be attempted under
these circumstances.
Present the media packages about to be recovered to the user and ask whether a recovery should be attempted under these circumstances .
def check_recovery_start(mps_to_recover):
    print()
    print("The following media packages can be recovered:")
    print("Media package                        | Version | Path")
    for mp in mps_to_recover:
        print("%36s | %7s | %s" % (mp.id, mp.version, mp.path))
    print()
    start_recover = get_yes_no_answer("Start recovery?")
    return start_recover
def check_recovery_start ( mps_to_recover ) : print ( ) print ( "The following media packages can be recovered:" ) print ( "Media package                        | Version | Path" ) for mp in mps_to_recover : print ( "%36s | %7s | %s" % ( mp . id , mp . version , mp . path ) ) print ( ) start_recover = get_yes_no_answer ( "Start recovery?" ) return start_recover
Present the media packages about to be recovered to the user and ask whether a recovery should be attempted under
these circumstances.
Present the media packages about to be recovered to the user and ask whether a recovery should be attempted under these circumstances .
"""
    Present the media packages about to be recovered to the user and ask whether a recovery should be attempted under
    these circumstances.

    :param mps_to_recover: The media packages that can be recovered.
    :type mps_to_recover: list
    :return: Whether the recovery should be started.
    :rtype: bool
    """
Whether the recovery should be started.
Whether the recovery should be started .
bool
mps_to_recover
The media packages that can be recovered.
The media packages that can be recovered .