예제 #1
0
 def _make_query(self, source, result, api_key=None, api_type='locate',
                 cell=(), wifi=(), **kw):
     query = Query(
         api_key=api_key or self.api_key,
         api_type=api_type,
         cell=self.cell_model_query(cell),
         wifi=self.wifi_model_query(wifi),
         geoip_db=self.geoip_db,
         stats_client=self.stats_client,
         **kw)
     query.emit_source_stats(source, result)
     return query
예제 #2
0
 def _make_query(self, source, result, api_key=None, api_type='locate',
                 cell=(), wifi=(), **kw):
     query = Query(
         api_key=api_key or self.api_key,
         api_type=api_type,
         cell=self.cell_model_query(cell),
         wifi=self.wifi_model_query(wifi),
         geoip_db=self.geoip_db,
         stats_client=self.stats_client,
         **kw)
     query.emit_source_stats(source, result)
     return query
예제 #3
0
 def _make_query(self, geoip_db, stats,
                 source, results, api_key=None, api_type='locate',
                 blue=(), cell=(), wifi=(), **kw):
     query = Query(
         api_key=api_key or KeyFactory(valid_key='test'),
         api_type=api_type,
         blue=self.blue_model_query(blue),
         cell=self.cell_model_query(cell),
         wifi=self.wifi_model_query(wifi),
         geoip_db=geoip_db,
         stats_client=stats,
         **kw)
     query.emit_source_stats(source, results)
     return query