Esempio n. 1
0
 def __fill_candidate_store(self):
     for e in libserver.get_candidate_repositories():
         try:
             res_time = self.__response_times[e[3]]
         except KeyError:
             res_time = self.NO_PING_RESPONSE
         e.append(res_time)
         self.candidate_store.append(e)
Esempio n. 2
0
 def __fill_candidate_store(self):
     for e in libserver.get_candidate_repositories():
         try:
             res_time = ResponseTime.get(e[self.SERVER])
         except KeyError:
             res_time = self.NOT_DETECTED
         e.append(res_time)
         url = e[2]
         in_use = APTSource2.all_lines_contain(url)
         e.append(in_use)
         self.candidate_store.append(e)