Beispiel #1
0
 def _sendAccountData(self, targetData, accountDossier):
     super(ProfileStatistics,
           self)._sendAccountData(targetData, accountDossier)
     self._setInitData(accountDossier)
     vo = getStatisticsVO(battlesType=self._battlesType,
                          targetData=targetData,
                          accountDossier=accountDossier,
                          isCurrentUser=self._userID is None)
     if self._battlesType == PROFILE_DROPDOWN_KEYS.TEAM:
         vo['showSeasonDropdown'] = False
     elif self._battlesType == PROFILE_DROPDOWN_KEYS.STATICTEAM or self._battlesType == PROFILE_DROPDOWN_KEYS.STATICTEAM_SEASON:
         self._battlesType = PROFILE_DROPDOWN_KEYS.STATICTEAM
         vo['headerText'] = backport.text(
             R.strings.profile.section.statistics.headerText.staticTeam())
         vo['dropdownSeasonLabel'] = text_styles.main(
             backport.text(R.strings.cyberSport.StaticFormationStatsView.
                           seasonFilter()))
         self.__updateStaticDropdownData(vo)
     elif self._battlesType == PROFILE_DROPDOWN_KEYS.RANKED:
         vo['seasonDropdownAttachToTitle'] = True
         vo['playersStatsLbl'] = backport.text(
             R.strings.ranked_battles.statistic.playersRaiting())
         vo['playersStats'] = self.rankedController.isEnabled()
         self.__updateRankedDropdownData(vo, self.__rankedSeasonKey)
     self.as_responseDossierS(self._battlesType, vo,
                              _FRAME_LABELS[self._battlesType], '')
     return
Beispiel #2
0
 def _sendAccountData(self, targetData, accountDossier):
     vo = getStatisticsVO(battlesType=self._battlesType, targetData=targetData, accountDossier=accountDossier, isCurrentUser=self._userID is None)
     if self._battlesType in (PROFILE_DROPDOWN_KEYS.TEAM, PROFILE_DROPDOWN_KEYS.STATICTEAM, PROFILE_DROPDOWN_KEYS.STATICTEAM_SEASON):
         if self._battlesType in (PROFILE_DROPDOWN_KEYS.STATICTEAM, PROFILE_DROPDOWN_KEYS.STATICTEAM_SEASON):
             self._setInitData(self._battlesType, accountDossier)
             self._battlesType = PROFILE_DROPDOWN_KEYS.STATICTEAM
             vo['headerText'] = i18n.makeString(PROFILE.SECTION_STATISTICS_HEADERTEXT_STATICTEAM)
             vo['dropdownSeasonLabel'] = text_styles.main(CYBERSPORT.STATICFORMATIONSTATSVIEW_SEASONFILTER)
             vo['showSeasonDropdown'] = True
         else:
             vo['showSeasonDropdown'] = False
     self.as_responseDossierS(self._battlesType, vo, _FRAME_LABELS[self._battlesType], '')
 def _sendAccountData(self, targetData, accountDossier):
     super(ProfileStatistics, self)._sendAccountData(targetData, accountDossier)
     self._setInitData(accountDossier)
     vo = getStatisticsVO(battlesType=self._battlesType, targetData=targetData, accountDossier=accountDossier, isCurrentUser=self._userID is None)
     if self._battlesType == PROFILE_DROPDOWN_KEYS.TEAM:
         vo['showSeasonDropdown'] = False
     elif self._battlesType == PROFILE_DROPDOWN_KEYS.STATICTEAM or self._battlesType == PROFILE_DROPDOWN_KEYS.STATICTEAM_SEASON:
         self._battlesType = PROFILE_DROPDOWN_KEYS.STATICTEAM
         vo['headerText'] = i18n.makeString(PROFILE.SECTION_STATISTICS_HEADERTEXT_STATICTEAM)
         vo['dropdownSeasonLabel'] = text_styles.main(CYBERSPORT.STATICFORMATIONSTATSVIEW_SEASONFILTER)
         self.__updateStaticDropdownData(vo)
     elif self._battlesType == PROFILE_DROPDOWN_KEYS.RANKED:
         vo['seasonDropdownAttachToTitle'] = True
         vo['playersStatsLbl'] = i18n.makeString(RANKED_BATTLES.STATISTIC_PLAYERSRAITING)
         vo['playersStats'] = True
         self.__updateRankedDropdownData(vo, self.__rankedSeason)
     self.as_responseDossierS(self._battlesType, vo, _FRAME_LABELS[self._battlesType], '')
     return
Beispiel #4
0
 def _sendAccountData(self, targetData, accountDossier):
     vo = getStatisticsVO(battlesType=self._battlesType,
                          targetData=targetData,
                          accountDossier=accountDossier,
                          isCurrentUser=self._userID is None)
     if self._battlesType in (PROFILE_DROPDOWN_KEYS.TEAM,
                              PROFILE_DROPDOWN_KEYS.STATICTEAM,
                              PROFILE_DROPDOWN_KEYS.STATICTEAM_SEASON):
         if self._battlesType in (PROFILE_DROPDOWN_KEYS.STATICTEAM,
                                  PROFILE_DROPDOWN_KEYS.STATICTEAM_SEASON):
             self._setInitData(self._battlesType, accountDossier)
             self._battlesType = PROFILE_DROPDOWN_KEYS.STATICTEAM
             vo['headerText'] = i18n.makeString(
                 PROFILE.SECTION_STATISTICS_HEADERTEXT_STATICTEAM)
             vo['dropdownSeasonLabel'] = text_styles.main(
                 CYBERSPORT.STATICFORMATIONSTATSVIEW_SEASONFILTER)
             vo['showSeasonDropdown'] = True
         else:
             vo['showSeasonDropdown'] = False
     self.as_responseDossierS(self._battlesType, vo,
                              _FRAME_LABELS[self._battlesType], '')