예제 #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
파일: target.py 프로젝트: hxer/note-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}
예제 #3
0
파일: target.py 프로젝트: 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}