List of countries and territories used in addresses.
authorTodd Larsen <tlarsen@google.com>
Fri, 23 May 2008 19:07:45 +0000
changeset 37 e3491f7e8aff
parent 36 e2f03be8ced9
child 38 9a6ee3ab1446
List of countries and territories used in addresses. Patch by: Todd Larsen Review by: Maarten Lankhorst Review issue: 241 Review URL: http://codereviews.googleopensourceprograms.com/241
soc/models/countries.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/soc/models/countries.py	Fri May 23 19:07:45 2008 +0000
@@ -0,0 +1,266 @@
+#!/usr/bin/python2.5
+#
+# Copyright 2008 the Melange authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+"""Set of known *current* country and territory names.
+
+Legacy (duplicate) names for some countries have been removed from the
+original list.  Also missing are the following U.S. OFAC embargoed and
+Commerce Department export-controlled countries:
+
+  Cuba, Iran, Myanmar (formerly Burma), North Korea, Sudan, Syria
+"""
+
+__authors__ = [
+  '"Todd Larsen" <tlarsen@google.com>',
+]
+
+
+COUNTRIES_AND_TERRITORIES = (
+  'Afghanistan, Islamic State of',
+  'Albania',
+  'Algeria',
+  'American Samoa',
+  'Andorra, Principality of',
+  'Angola',
+  'Anguilla',
+  'Antarctica',
+  'Antigua and Barbuda',
+  'Argentina',
+  'Armenia',
+  'Aruba',
+  'Australia',
+  'Austria',
+  'Azerbaidjan',
+  'Bahamas',
+  'Bahrain',
+  'Bangladesh',
+  'Barbados',
+  'Belarus',
+  'Belgium',
+  'Belize',
+  'Benin',
+  'Bermuda',
+  'Bhutan',
+  'Bolivia',
+  'Bosnia-Herzegovina',
+  'Botswana',
+  'Bouvet Island',
+  'Brazil',
+  'British Indian Ocean Territory',
+  'Brunei Darussalam',
+  'Bulgaria',
+  'Burkina Faso',
+  'Burundi',
+  'Cambodia, Kingdom of',
+  'Cameroon',
+  'Canada',
+  'Cape Verde',
+  'Cayman Islands',
+  'Central African Republic',
+  'Chad',
+  'Chile',
+  'China',
+  'Christmas Island',
+  'Cocos (Keeling) Islands',
+  'Colombia',
+  'Comoros',
+  'Congo',
+  'Congo, Democratic Republic of the',
+  'Cook Islands',
+  'Costa Rica',
+  'Croatia',
+  'Cyprus',
+  'Czech Republic',
+  'Denmark',
+  'Djibouti',
+  'Dominica',
+  'Dominican Republic',
+  'East Timor',
+  'Ecuador',
+  'Egypt',
+  'El Salvador',
+  'Equatorial Guinea',
+  'Eritrea',
+  'Estonia',
+  'Ethiopia',
+  'Falkland Islands',
+  'Faroe Islands',
+  'Fiji',
+  'Finland',
+  'France',
+  'French Guyana',
+  'French Southern Territories',
+  'Gabon',
+  'Gambia',
+  'Georgia',
+  'Germany',
+  'Ghana',
+  'Gibraltar',
+  'Great Britain',
+  'Greece',
+  'Greenland',
+  'Grenada',
+  'Guadeloupe (French)',
+  'Guam (USA)',
+  'Guatemala',
+  'Guinea',
+  'Guinea Bissau',
+  'Guyana',
+  'Haiti',
+  'Heard and McDonald Islands',
+  'Holy See (Vatican City State)',
+  'Honduras',
+  'Hong Kong',
+  'Hungary',
+  'Iceland',
+  'India',
+  'Indonesia',
+  'Iraq',
+  'Ireland',
+  'Israel',
+  'Italy',
+  "Ivory Coast (Cote D'Ivoire)",
+  'Jamaica',
+  'Japan',
+  'Jordan',
+  'Kazakhstan',
+  'Kenya',
+  'Kiribati',
+  'Kuwait',
+  'Kyrgyz Republic (Kyrgyzstan)',
+  'Laos',
+  'Latvia',
+  'Lebanon',
+  'Lesotho',
+  'Liberia',
+  'Libya',
+  'Liechtenstein',
+  'Lithuania',
+  'Luxembourg',
+  'Macau',
+  'Macedonia',
+  'Madagascar',
+  'Malawi',
+  'Malaysia',
+  'Maldives',
+  'Mali',
+  'Malta',
+  'Marshall Islands',
+  'Martinique (French)',
+  'Mauritania',
+  'Mauritius',
+  'Mayotte',
+  'Mexico',
+  'Micronesia',
+  'Moldavia',
+  'Monaco',
+  'Mongolia',
+  'Montenegro',
+  'Montserrat',
+  'Morocco',
+  'Mozambique',
+  'Namibia',
+  'Nauru',
+  'Nepal',
+  'Netherlands',
+  'Netherlands Antilles',
+  'New Caledonia (French)',
+  'New Zealand',
+  'Nicaragua',
+  'Niger',
+  'Nigeria',
+  'Niue',
+  'Northern Mariana Islands',
+  'Norway',
+  'Oman',
+  'Pakistan',
+  'Palau',
+  'Palestinian Territories',
+  'Panama',
+  'Papua New Guinea',
+  'Paraguay',
+  'Peru',
+  'Philippines',
+  'Pitcairn Island',
+  'Poland',
+  'Polynesia (French)',
+  'Portugal',
+  'Puerto Rico',
+  'Qatar',
+  'Reunion (French)',
+  'Romania',
+  'Russian Federation',
+  'Rwanda',
+  'South Georgia & South Sandwich Islands',
+  'Saint Helena',
+  'Saint Kitts & Nevis Anguilla',
+  'Saint Lucia',
+  'Saint Pierre and Miquelon',
+  'Saint Tome (Sao Tome) and Principe',
+  'Saint Vincent & Grenadines',
+  'Samoa',
+  'San Marino',
+  'Saudi Arabia',
+  'Senegal',
+  'Serbia',
+  'Seychelles',
+  'Sierra Leone',
+  'Singapore',
+  'Slovak Republic',
+  'Slovenia',
+  'Solomon Islands',
+  'Somalia',
+  'South Africa',
+  'South Korea',
+  'Spain',
+  'Sri Lanka',
+  'Suriname',
+  'Svalbard and Jan Mayen Islands',
+  'Swaziland',
+  'Sweden',
+  'Switzerland',
+  'Tadjikistan',
+  'Taiwan',
+  'Tanzania',
+  'Thailand',
+  'Togo',
+  'Tokelau',
+  'Tonga',
+  'Trinidad and Tobago',
+  'Tunisia',
+  'Turkey',
+  'Turkmenistan',
+  'Turks and Caicos Islands',
+  'Tuvalu',
+  'USA Minor Outlying Islands',
+  'Uganda',
+  'Ukraine',
+  'United Arab Emirates',
+  'United Kingdom',
+  'United States',
+  'Uruguay',
+  'Uzbekistan',
+  'Vanuatu',
+  'Venezuela',
+  'Vietnam',
+  'Virgin Islands (British)',
+  'Virgin Islands (USA)',
+  'Wallis and Futuna Islands',
+  'Western Sahara',
+  'Yemen',
+  'Zambia',
+  'Zimbabwe',
+)