Beispiel #1
0
 def _populate(self):
     super(SearchContactView, self)._populate()
     self._searchDP = SearchUsersDataProvider()
     self._searchDP.init(self.as_getSearchDPS(), [self])
     self.as_setSearchResultTextS(
         i18n.makeString(MESSENGER.DIALOGS_SEARCHCONTACT_LABELS_RESULT))
     self.as_setSearchDisabledS(
         getRequestCoolDown(REQUEST_SCOPE.BW_CHAT2,
                            MESSENGER_ACTION_IDS.FIND_USERS_BY_NAME))
 def _populate(self):
     self._searchDP = SearchUsersDataProvider(
         self.proto.contacts.getUserSearchProcessor())
     super(SearchContactView, self)._populate()
     self._searchDP.init(self.as_getSearchDPS(), [self])
     self.as_setSearchResultTextS(
         i18n.makeString(MESSENGER.DIALOGS_SEARCHCONTACT_LABELS_RESULT))
     self.as_setSearchDisabledS(
         getRequestCoolDown(self._cooldownInfo.requestScope,
                            self._cooldownInfo.actionId))