def calcCupTextListForAllPlayers(self, localAvId):
    retval = []
    for cupPlayerIndex in xrange(len(self.avIdList)):
        if (self.avIdList[cupPlayerIndex] != localAvId):
            av = base.cr.doId2do.get(self.avIdList[cupPlayerIndex])
            name = ''
            if av:
                name = av.getName()
            cupIndex = 0
            for cupIndex in xrange(len(self.cupList[cupPlayerIndex])):
                if self.cupList[cupPlayerIndex][cupIndex]:
                    cupName = TTLocalizer.GolfCupDescriptions[cupIndex]
                    text = (TTLocalizer.GolfAvReceivesCup % {'name': name, 'cup': cupName})
                    retval.append(text)
    for cupPlayerIndex in xrange(len(self.avIdList)):
        if (self.avIdList[cupPlayerIndex] == localAvId):
            av = base.cr.doId2do.get(self.avIdList[cupPlayerIndex])
            name = av.getName()
            cupIndex = 0
            for cupIndex in xrange(len(self.cupList[cupPlayerIndex])):
                if self.cupList[cupPlayerIndex][cupIndex]:
                    cupName = TTLocalizer.GolfCupDescriptions[cupIndex]
                    text = (TTLocalizer.GolfAvReceivesCup % {'name': name, 'cup': cupName})
                    retval.append(text)
    return retval
def calcCupTextListForAllPlayers(self, localAvId):
    retval = []
    for cupPlayerIndex in xrange(len(self.avIdList)):
        if (self.avIdList[cupPlayerIndex] != localAvId):
            av = base.cr.doId2do.get(self.avIdList[cupPlayerIndex])
            name = 
            if av:
                name = av.getName()
            cupIndex = 0
            for cupIndex in xrange(len(self.cupList[cupPlayerIndex])):
                if self.cupList[cupPlayerIndex][cupIndex]:
                    cupName = TTLocalizer.GolfCupDescriptions[cupIndex]
                    text = (TTLocalizer.GolfAvReceivesCup % {'name': name, 'cup': cupName})
                    retval.append(text)
    for cupPlayerIndex in xrange(len(self.avIdList)):
        if (self.avIdList[cupPlayerIndex] == localAvId):
            av = base.cr.doId2do.get(self.avIdList[cupPlayerIndex])
            name = av.getName()
            cupIndex = 0
            for cupIndex in xrange(len(self.cupList[cupPlayerIndex])):
                if self.cupList[cupPlayerIndex][cupIndex]:
                    cupName = TTLocalizer.GolfCupDescriptions[cupIndex]
                    text = (TTLocalizer.GolfAvReceivesCup % {'name': name, 'cup': cupName})
                    retval.append(text)
    return retval