def FindDBLocations(DB, Aminos):
    """
    Find all occurrences of this peptide in the database.
    Return DB indices.
    """
    PrevPos = -1
    LocationList = []
    while (1):
        Pos = DB.find(Aminos, PrevPos + 1)
        if Pos == -1:
            break
        LocationList.append(Pos)
        PrevPos = Pos
    return LocationList