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()))
Exemplo n.º 3
0
 def __revokeApplication(self):
     self.as_showWaitingS(WAITING.CLUBS_APP_REVOKE, {})
     result = yield self.clubsCtrl.sendRequest(
         RevokeApplicationCtx(self.__clubDbID))
     if result.isSuccess():
         SystemMessages.pushMessage(
             club_fmts.getAppRevokeSysMsg(
                 self.clubsCtrl.getClub(self.__clubDbID)))
     self.as_hideWaitingS()
Exemplo n.º 4
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()))
Exemplo n.º 5
0
 def __revokeApplication(self):
     self.as_showWaitingS(WAITING.CLUBS_APP_REVOKE, {})
     result = yield self.clubsCtrl.sendRequest(RevokeApplicationCtx(self.__clubDbID))
     if result.isSuccess():
         SystemMessages.pushMessage(club_fmts.getAppRevokeSysMsg(self.clubsCtrl.getClub(self.__clubDbID)))
     self.as_hideWaitingS()
Exemplo n.º 6
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)))