This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
glasnost/shared/common/geography.py

520 lines
6.7 KiB
Python
Raw Normal View History

# -*- coding: iso-8859-15 -*-
2003-01-08 12:20:19 +01:00
# Glasnost
# By: Odile B<>nassy <obenassy@entrouvert.com>
# Romain Chantereau <rchantereau@entrouvert.com>
# Nicolas Clapi<70>s <nclapies@easter-eggs.org>
# Pierre-Antoine Dejace <padejace@entrouvert.be>
2003-01-08 12:20:19 +01:00
# Thierry Dulieu <tdulieu@easter-eggs.com>
# Florent Monnier <monnier@codelutin.com>
# C<>dric Musso <cmusso@easter-eggs.org>
# Fr<46>d<EFBFBD>ric P<>ters <fpeters@entrouvert.be>
2003-01-08 12:20:19 +01:00
# Benjamin Poussin <poussin@codelutin.com>
# Emmanuel Raviart <eraviart@entrouvert.com>
# S<>bastien R<>gnier <regnier@codelutin.com>
2003-01-08 12:20:19 +01:00
# Emmanuel Saracco <esaracco@easter-eggs.com>
#
# Copyright (C) 2000, 2001 Easter-eggs & Emmanuel Raviart
# Copyright (C) 2002 Odile B<>nassy, Code Lutin, Thierry Dulieu, Easter-eggs,
# Entr'ouvert, Fr<46>d<EFBFBD>ric P<>ters, Benjamin Poussin, Emmanuel Raviart,
# Emmanuel Saracco & Th<54>ridion
# Copyright (C) 2003 Odile B<>nassy, Romain Chantereau, Nicolas Clapi<70>s,
# Code Lutin, Pierre-Antoine Dejace, Thierry Dulieu, Easter-eggs,
# Entr'ouvert, Florent Monnier, C<>dric Musso, Ouvaton, Fr<46>d<EFBFBD>ric P<>ters,
# Benjamin Poussin, Rodolphe Qui<75>deville, Emmanuel Raviart, S<>bastien
# R<>gnier, Emmanuel Saracco, Th<54>ridion & Vecam
2003-01-08 12:20:19 +01:00
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
__doc__ = """Glasnost Geography Values"""
__version__ = '$Revision$'[11:-2]
countryCodes = [
'af',
'al',
'dz',
'as',
'ad',
2003-01-08 12:20:19 +01:00
'ao',
'ai',
'aq',
'ag',
2003-01-08 12:20:19 +01:00
'ar',
'am',
'aw',
'au',
'at',
2003-01-08 12:20:19 +01:00
'az',
'bs',
'bh',
'bd',
'bb',
'by',
2003-01-08 12:20:19 +01:00
'be',
'bz',
2003-01-08 12:20:19 +01:00
'bj',
'bm',
'bt',
'bo',
'ba',
'bw',
'bv',
'br',
'io',
'bn',
'bg',
'bf',
'bi',
'kh',
'cm',
2003-01-08 12:20:19 +01:00
'ca',
'cv',
'ky',
2003-01-08 12:20:19 +01:00
'cf',
'td',
2003-01-08 12:20:19 +01:00
'cl',
'cn',
'cx',
'cc',
2003-01-08 12:20:19 +01:00
'co',
'km',
'cg',
'cd',
'ck',
2003-01-08 12:20:19 +01:00
'cr',
'ci',
'hr',
2003-01-08 12:20:19 +01:00
'cu',
'cy',
'cz',
'dk',
'dj',
2003-01-08 12:20:19 +01:00
'dm',
'do',
'ec',
'eg',
'sv',
'gq',
2003-01-08 12:20:19 +01:00
'er',
'ee',
2003-01-08 12:20:19 +01:00
'et',
'fk',
'fo',
'fj',
'fi',
2003-01-08 12:20:19 +01:00
'fr',
'gf',
'pf',
'tf',
2003-01-08 12:20:19 +01:00
'ga',
'gm',
2003-01-08 12:20:19 +01:00
'ge',
'de',
2003-01-08 12:20:19 +01:00
'gh',
'gi',
2003-01-08 12:20:19 +01:00
'gr',
'gl',
'gd',
'gp',
'gu',
2003-01-08 12:20:19 +01:00
'gt',
'gn',
2003-01-08 12:20:19 +01:00
'gw',
'gy',
'ht',
'hm',
'va',
'hn',
'hk',
2003-01-08 12:20:19 +01:00
'hu',
'is',
'in',
2003-01-08 12:20:19 +01:00
'id',
'ir',
'iq',
2003-01-08 12:20:19 +01:00
'ie',
'il',
'it',
'jm',
'jp',
'jo',
'kz',
2003-01-08 12:20:19 +01:00
'ke',
'ki',
'kp',
'kr',
'kw',
'kg',
2003-01-08 12:20:19 +01:00
'la',
'lv',
2003-01-08 12:20:19 +01:00
'lb',
'ls',
'lr',
'ly',
'li',
2003-01-08 12:20:19 +01:00
'lt',
'lu',
'mo',
'mk',
'mg',
'mw',
'my',
'mv',
'ml',
'mt',
'mh',
'mq',
'mr',
2003-01-08 12:20:19 +01:00
'mu',
'yt',
2003-01-08 12:20:19 +01:00
'mx',
'fm',
'md',
'mc',
'mn',
'ms',
'ma',
2003-01-08 12:20:19 +01:00
'mz',
'mm',
2003-01-08 12:20:19 +01:00
'na',
'nr',
'np',
'nl',
'an',
'nc',
'nz',
'ni',
2003-01-08 12:20:19 +01:00
'ne',
'ng',
'nu',
'nf',
'mp',
2003-01-08 12:20:19 +01:00
'no',
'om',
'pk',
'pw',
'ps',
2003-01-08 12:20:19 +01:00
'pa',
'pg',
'py',
'pe',
2003-01-08 12:20:19 +01:00
'ph',
'pn',
2003-01-08 12:20:19 +01:00
'pl',
'pt',
'pr',
2003-01-08 12:20:19 +01:00
'qa',
're',
2003-01-08 12:20:19 +01:00
'ro',
'ru',
'rw',
'sh',
'kn',
'lc',
'pm',
'vc',
'ws',
'sm',
'st',
2003-01-08 12:20:19 +01:00
'sa',
'sn',
'cs',
2003-01-08 12:20:19 +01:00
'sc',
'sl',
2003-01-08 12:20:19 +01:00
'sg',
'sk',
'si',
'sb',
2003-01-08 12:20:19 +01:00
'so',
'za',
'gs',
'es',
'lk',
'sd',
2003-01-08 12:20:19 +01:00
'sr',
'sj',
'sz',
'se',
'ch',
'sy',
'tw',
'tj',
'tz',
'th',
'tl',
'tg',
'tk',
'to',
'tt',
'tn',
'tr',
'tm',
'tc',
2003-01-08 12:20:19 +01:00
'tv',
'ug',
'ua',
'ae',
'gb',
2003-01-08 12:20:19 +01:00
'us',
'um',
2003-01-08 12:20:19 +01:00
'uy',
'uz',
'vu',
2003-01-08 12:20:19 +01:00
've',
'vn',
'vg',
'vi',
'wf',
'eh',
2003-01-08 12:20:19 +01:00
'ye',
'zm',
'zw'
]
africaanCountries = [
'dz',
'ao',
'bj',
'bw',
'bf',
'bi',
'cm',
'cf',
'td',
'cg',
'cd',
'ci',
'dj',
'eg',
'gq',
'er',
'et',
'ga',
'gm',
'gh',
'gn',
'gw',
'ke',
'ls',
'lr',
2004-04-26 14:17:38 +02:00
'ly',
'mg',
'mw',
'ml',
'mr',
'ma',
'mz',
'na',
'ne',
'ng',
'rw',
'st',
'sn',
'sl',
'so',
'za',
'sd',
'sz',
'tz',
'tg',
'tn',
'ug',
'eh',
2003-01-08 12:20:19 +01:00
'zm',
'zw',
]
asianCountries = [
'af',
'am',
'az',
'bh',
'bd',
'bt',
'bn',
'kh',
'cn',
'cy',
'ge',
'in',
'id',
'ir',
'iq',
'il',
'jp',
'jo',
'kz',
'kr',
'kp',
'kw',
'kg',
'la',
'lb',
'my',
'mn',
'np',
'om',
'pk',
'pg',
'ph',
'qa',
'sa',
'sg',
'lk',
'sy',
'tj',
'th',
'tr',
'tm',
'ae',
'uz',
'vn',
2004-04-26 14:17:38 +02:00
'ye',
'ps',
]
atlanticOceanCountries = [
'bm',
'bv',
'cv',
'fo',
'fk',
'sh',
'gs'
]
australaisaCountries = [
'au',
'nz',
'nf'
]
centralAmericaCountries = [
'bz',
'cr',
'sv',
'gt',
'hn',
'ni',
'pa'
2003-01-08 12:20:19 +01:00
]
europeanCountries = [
2004-04-26 14:17:38 +02:00
'al',
'ad',
'at',
'by',
'be',
2004-04-26 14:17:38 +02:00
'ba',
'bg',
'hr',
'cz',
'dk',
'ee',
'es',
2004-04-26 14:17:38 +02:00
'fi',
'fr',
'de',
'gi',
'gr',
'hu',
'is',
'ie',
'it',
'lv',
'li',
'lt',
'lu',
'mk',
'mt',
'md',
'mc',
'nl',
'no',
'pl',
'pt',
'ro',
'ru',
'sm',
'sk',
'si',
'se',
'ch',
'ua',
'gb',
'va'
]
northAmericaCountries = [
'ca',
'gl',
'mx',
'us',
'pm'
]
southAmericaCountries = [
'ar',
'bo',
'br',
'cl',
'co',
'ec',
'gf',
'gy',
'py',
'pe',
'sr',
'uy',
've'
]
2003-01-08 12:20:19 +01:00
frenchRegions = [
'alsace',
'aquitaine',
'auvergne',
'bourgogne',
'bretagne',
'centre',
'champagneardenne',
'corse',
'domtom',
'franchecomte',
'iledefrance',
'languedocroussillon',
'limousin',
'lorraine',
'midipyrenees',
'nordpasdecalais',
'normandie',
'paysdelaloire',
'picardie',
'poitoucharentes',
'paca',
'rhonealpes',
2004-04-26 14:17:38 +02:00
'haute-normandie',
'basse-normandie',
2003-01-08 12:20:19 +01:00
]
2003-06-14 23:00:23 +02:00