Esempio n. 1
0
 def __init__(self, country, categories=None, rand=True, maxnbr=None,
              state=None):
     super().__init__(
         geoiputils.get_ranges_by_country(country), rand=rand,
         maxnbr=maxnbr, state=state, name='COUNTRY-%s' % country,
         categories=categories,
     )
Esempio n. 2
0
 def __init__(self, country, categories=None, rand=True, maxnbr=None,
              state=None):
     Target.__init__(self,
                     geoiputils.get_ranges_by_country(country),
                     rand=rand, maxnbr=maxnbr, state=state)
     if categories is None:
         categories = ['COUNTRY-%s' % country]
     self.infos = {'categories': categories}
Esempio n. 3
0
File: target.py Progetto: bemre/ivre
 def __init__(self, country, categories=None, rand=True, maxnbr=None,
              state=None):
     Target.__init__(self,
                     geoiputils.get_ranges_by_country(country),
                     rand=rand, maxnbr=maxnbr, state=state)
     if categories is None:
         categories = ['COUNTRY-%s' % country]
     self.infos = {'categories': categories}