コード例 #1
0
ファイル: __init__.py プロジェクト: nivertech/aleph
 def add_country(self, country):
     country = chomp(country, lower=True)
     if is_country_code(country) and country not in self._countries:
         self._countries.append(country)
コード例 #2
0
ファイル: validation.py プロジェクト: nivertech/aleph
def country_code(code):
    return is_country_code(code)
コード例 #3
0
 def add_country(self, country):
     country = chomp(country, lower=True)
     if is_country_code(country) and country not in self._countries:
         self._countries.append(country)
コード例 #4
0
def country_code(code):
    return is_country_code(code)