Exemplo n.º 1
0
 def __requestToCancelClub(self, clubDBID):
     result = yield self.clubsCtrl.sendRequest(
         club_ctx.RevokeApplicationCtx(clubDBID,
                                       waitingID='clubs/app/revoke'))
     if result.isSuccess():
         SystemMessages.pushMessage(
             club_fmts.getAppRevokeSysMsg(self.clubsCtrl.getClub(clubDBID)))
Exemplo n.º 2
0
 def cancelWaitingTeamRequest(self):
     state = self.clubsState
     if self.clubsState.getStateID() == CLIENT_CLUB_STATE.SENT_APP:
         result = yield self.clubsCtrl.sendRequest(
             club_ctx.RevokeApplicationCtx(state.getClubDbID(),
                                           'clubs/app/revoke'))
         if result.isSuccess():
             SystemMessages.pushMessage(
                 club_fmts.getAppRevokeSysMsg(self.getClub()))