Example #1
0
 def _make_query(self, 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_result_stats(result)
     return query
Example #2
0
 def _make_query(self, 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_result_stats(result)
     return query
Example #3
0
 def _make_query(self, geoip_db, stats,
                 result, 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_result_stats(result)
     return query
Example #4
0
 def _make_query(
         self,
         geoip_db,
         result,
         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,
         **kw,
     )
     query.emit_result_stats(result)
     return query