def calcRankings(self, localAvId):
    retval = []
    self.notify.debug(('aimTimesList=%s' % self.aimTimesList))
    for rank in xrange((len(self.rankingsList) + 1)):
        for avIndex in xrange(len(self.avIdList)):
            if (self.rankingsList[avIndex] == rank):
                name = ' '
                av = base.cr.doId2do.get(self.avIdList[avIndex])
                if av:
                    name = av.getName()
                text = ((('%d. ' % rank) + ' ') + name)
                if GolfGlobals.TIME_TIE_BREAKER:
                    time = self.aimTimesList[avIndex]
                    minutes = int((time / 60))
                    time -= (minutes * 60)
                    seconds = int(time)
                    padding = (((seconds < 10) and ['0']) or [''])[0]
                    time -= seconds
                    fraction = str(time)[2:4]
                    fraction = (fraction + ('0' * (2 - len(fraction))))
                    timeStr = ("%d'%s%d''%s" % (minutes, padding, seconds, fraction))
                    text += (' - ' + timeStr)
                retval.append(text)
                if (self.avIdList[avIndex] == localAvId):
                    self.myPlace = rank
    return retval
def calcRankings(self, localAvId):
    retval = []
    self.notify.debug(('aimTimesList=%s' % self.aimTimesList))
    for rank in xrange((len(self.rankingsList) + 1)):
        for avIndex in xrange(len(self.avIdList)):
            if (self.rankingsList[avIndex] == rank):
                name = ' '
                av = base.cr.doId2do.get(self.avIdList[avIndex])
                if av:
                    name = av.getName()
                text = ((('%d. ' % rank) + ' ') + name)
                if GolfGlobals.TIME_TIE_BREAKER:
                    time = self.aimTimesList[avIndex]
                    minutes = int((time / 60))
                    time -= (minutes * 60)
                    seconds = int(time)
                    padding = (((seconds < 10) and ['0']) or [])[0]
                    time -= seconds
                    fraction = str(time)[2:4]
                    fraction = (fraction + ('0' * (2 - len(fraction))))
                    timeStr = ("%d'%s%d%s" % (minutes, padding, seconds, fraction))
                    text += (' - ' + timeStr)
                retval.append(text)
                if (self.avIdList[avIndex] == localAvId):
                    self.myPlace = rank
    return retval