Пример #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,
     )
Пример #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}
Пример #3
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}