Example #1
0
def AutoInvitesIterator():
    autoInvites = getPrebattleAutoInvites().items()

    def comparator(obj, other):
        return cmp(obj[1].get('startTime', time.time()), other[1].get('startTime', time.time()))

    autoInvites.sort(comparator)
    for prbID, info in autoInvites:
        yield AutoInviteItem(prbID, **info)
Example #2
0
def AutoInvitesIterator():
    autoInvites = getPrebattleAutoInvites().items()

    def comparator(obj, other):
        return cmp(obj[1].get('startTime', time.time()),
                   other[1].get('startTime', time.time()))

    autoInvites.sort(comparator)
    for prbID, info in autoInvites:
        yield AutoInviteItem(prbID, **info)
Example #3
0
 def __onPrbAutoInvitesChanged(self):
     if self._inviteInfo.getID() not in getPrebattleAutoInvites():
         self.destroy()
Example #4
0
 def getItem(self, prbID):
     return prb_seqs.AutoInviteItem(prbID, **getPrebattleAutoInvites().get(prbID, {}))
Example #5
0
 def hasInvite(cls, prbID):
     return prbID in getPrebattleAutoInvites()
Example #6
0
 def __onPrbAutoInvitesChanged(self):
     if self._inviteInfo.getID() not in getPrebattleAutoInvites():
         self.destroy()
Example #7
0
 def getItem(self, prbID):
     return prb_seqs.AutoInviteItem(
         prbID,
         **getPrebattleAutoInvites().get(prbID, {}))
Example #8
0
 def hasInvite(cls, prbID):
     return prbID in getPrebattleAutoInvites()