def calcHoleBestTextListForAllPlayers(self, localAvId):
    retval = []
    if GolfGlobals.CalcOtherHoleBest:
        for hbPlayerIndex in xrange(len(self.avIdList)):
            if (self.avIdList[hbPlayerIndex] != localAvId):
                av = base.cr.doId2do.get(self.avIdList[hbPlayerIndex])
                name = av.getName()
                for hbIndex in xrange(len(self.holeBestList[hbPlayerIndex])):
                    if self.holeBestList[hbPlayerIndex][hbIndex]:
                        hbName = TTLocalizer.GolfHoleNames[hbIndex]
                        text = (TTLocalizer.GolfAvReceivesHoleBest % {'name': name, 'hole': hbName})
                        retval.append(text)
    for hbPlayerIndex in xrange(len(self.avIdList)):
        if (self.avIdList[hbPlayerIndex] == localAvId):
            av = base.cr.doId2do.get(self.avIdList[hbPlayerIndex])
            name = av.getName()
            for hbIndex in xrange(len(self.holeBestList[hbPlayerIndex])):
                if self.holeBestList[hbPlayerIndex][hbIndex]:
                    hbName = TTLocalizer.GolfHoleNames[hbIndex]
                    text = (TTLocalizer.GolfAvReceivesHoleBest % {'name': name, 'hole': hbName})
                    retval.append(text)
    return retval
def calcHoleBestTextListForAllPlayers(self, localAvId):
    retval = []
    if GolfGlobals.CalcOtherHoleBest:
        for hbPlayerIndex in xrange(len(self.avIdList)):
            if (self.avIdList[hbPlayerIndex] != localAvId):
                av = base.cr.doId2do.get(self.avIdList[hbPlayerIndex])
                name = av.getName()
                for hbIndex in xrange(len(self.holeBestList[hbPlayerIndex])):
                    if self.holeBestList[hbPlayerIndex][hbIndex]:
                        hbName = TTLocalizer.GolfHoleNames[hbIndex]
                        text = (TTLocalizer.GolfAvReceivesHoleBest % {'name': name, 'hole': hbName})
                        retval.append(text)
    for hbPlayerIndex in xrange(len(self.avIdList)):
        if (self.avIdList[hbPlayerIndex] == localAvId):
            av = base.cr.doId2do.get(self.avIdList[hbPlayerIndex])
            name = av.getName()
            for hbIndex in xrange(len(self.holeBestList[hbPlayerIndex])):
                if self.holeBestList[hbPlayerIndex][hbIndex]:
                    hbName = TTLocalizer.GolfHoleNames[hbIndex]
                    text = (TTLocalizer.GolfAvReceivesHoleBest % {'name': name, 'hole': hbName})
                    retval.append(text)
    return retval