Esempio n. 1
0
 def _make_query(self, 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_query_stats()
     return query
Esempio n. 2
0
 def _make_query(self, 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_query_stats()
     return query
Esempio n. 3
0
 def _make_query(self, geoip_db, stats,
                 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_query_stats()
     return query
Esempio n. 4
0
 def _make_query(
     self, geoip_db, 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_query_stats()
     return query