def calcCourseBestTextListForAllPlayers(self, localAvId):
    retval = []
    if GolfGlobals.CalcOtherCourseBest:
        for cbPlayerIndex in xrange(len(self.avIdList)):
            if (self.avIdList[cbPlayerIndex] != localAvId):
                av = base.cr.doId2do.get(self.avIdList[cbPlayerIndex])
                name = av.getName()
                for cbIndex in xrange(len(self.holeBestList[cbPlayerIndex])):
                    if self.holeBestList[cbPlayerIndex][cbIndex]:
                        cbName = TTLocalizer.GolfCourseNames[cbIndex]
                        text = (TTLocalizer.GolfAvReceivesCourseBest % {'name': name, 'course': cbName})
                        retval.append(text)
    for cbPlayerIndex in xrange(len(self.avIdList)):
        if (self.avIdList[cbPlayerIndex] == localAvId):
            av = base.cr.doId2do.get(self.avIdList[cbPlayerIndex])
            name = av.getName()
            for cbIndex in xrange(len(self.courseBestList[cbPlayerIndex])):
                if self.courseBestList[cbPlayerIndex][cbIndex]:
                    cbName = TTLocalizer.GolfCourseNames[cbIndex]
                    text = (TTLocalizer.GolfAvReceivesCourseBest % {'name': name, 'course': cbName})
                    retval.append(text)
    return retval
def calcCourseBestTextListForAllPlayers(self, localAvId):
    retval = []
    if GolfGlobals.CalcOtherCourseBest:
        for cbPlayerIndex in xrange(len(self.avIdList)):
            if (self.avIdList[cbPlayerIndex] != localAvId):
                av = base.cr.doId2do.get(self.avIdList[cbPlayerIndex])
                name = av.getName()
                for cbIndex in xrange(len(self.holeBestList[cbPlayerIndex])):
                    if self.holeBestList[cbPlayerIndex][cbIndex]:
                        cbName = TTLocalizer.GolfCourseNames[cbIndex]
                        text = (TTLocalizer.GolfAvReceivesCourseBest % {'name': name, 'course': cbName})
                        retval.append(text)
    for cbPlayerIndex in xrange(len(self.avIdList)):
        if (self.avIdList[cbPlayerIndex] == localAvId):
            av = base.cr.doId2do.get(self.avIdList[cbPlayerIndex])
            name = av.getName()
            for cbIndex in xrange(len(self.courseBestList[cbPlayerIndex])):
                if self.courseBestList[cbPlayerIndex][cbIndex]:
                    cbName = TTLocalizer.GolfCourseNames[cbIndex]
                    text = (TTLocalizer.GolfAvReceivesCourseBest % {'name': name, 'course': cbName})
                    retval.append(text)
    return retval