app/soc/models/countries.py
changeset 2248 094785ac13a5
parent 1308 35b75ffcbb37
child 2735 74f0972f523f
--- a/app/soc/models/countries.py	Sun Apr 19 17:42:57 2009 +0000
+++ b/app/soc/models/countries.py	Sun Apr 19 21:26:38 2009 +0000
@@ -24,6 +24,7 @@
 """
 
 __authors__ = [
+  '"Madhusudan.C.S" <madhusudancs@gmail.com>',
   '"Todd Larsen" <tlarsen@google.com>',
 ]
 
@@ -263,3 +264,240 @@
   'Zambia',
   'Zimbabwe',
 )
+
+# mapping of countries to their CCTLD
+COUNTRIES_TO_CCTLD = {
+  'Afghanistan, Islamic State of': '.af',
+  'Albania': '.al',
+  'Algeria': '.dz',
+  'American Samoa': '.as',
+  'Andorra, Principality of': '.ad',
+  'Angola': '.ao',
+  'Anguilla': '.ai',
+  'Antarctica': '.aq',
+  'Antigua and Barbuda': '.ag',
+  'Argentina': '.ar',
+  'Armenia': '.am',
+  'Aruba': '.aw',
+  'Australia': '.au',
+  'Austria': '.at',
+  'Azerbaidjan': '.az',
+  'Bahamas': '.bs',
+  'Bahrain': '.bh',
+  'Bangladesh': '.bd',
+  'Barbados': '.bb',
+  'Belarus': '.by',
+  'Belgium': '.be',
+  'Belize': '.bz',
+  'Benin': '.bj',
+  'Bermuda': '.bm',
+  'Bhutan': '.bt',
+  'Bolivia': '.bo',
+  'Bosnia-Herzegovina': '.ba',
+  'Botswana': '.bw',
+  'Bouvet Island': '.bv',
+  'Brazil': '.br',
+  'British Indian Ocean Territory': '.io',
+  'Brunei Darussalam': '.bn',
+  'Bulgaria': '',
+  'Burkina Faso': '.bg',
+  'Burundi': '.bi',
+  'Cambodia, Kingdom of': '.kh',
+  'Cameroon': '.cm',
+  'Canada': '.ca',
+  'Cape Verde': '.cv',
+  'Cayman Islands': '.ky',
+  'Central African Republic': '.cf',
+  'Chad': '.td',
+  'Chile': '.cl',
+  'China': '.cn',
+  'Christmas Island': '.cx',
+  'Cocos (Keeling) Islands': '.cc',
+  'Colombia': '.co',
+  'Comoros': '.km',
+  'Congo': '.cg',
+  'Congo, Democratic Republic of the': '.cd',
+  'Cook Islands': '.ck',
+  'Costa Rica': '.cr',
+  'Croatia': '.hr',
+  'Cyprus': '.cy',
+  'Czech Republic': '.cz',
+  'Denmark': '.dk',
+  'Djibouti': '.dj',
+  'Dominica': '.dm',
+  'Dominican Republic': '.do',
+  'East Timor': '.tl',
+  'Ecuador': '.ec',
+  'Egypt': '.eg',
+  'El Salvador': '.sv',
+  'Equatorial Guinea': '.gq',
+  'Eritrea': '.er',
+  'Estonia': '.ee',
+  'Ethiopia': '.et',
+  'Falkland Islands': '.fk',
+  'Faroe Islands': '.fo',
+  'Fiji': '.fj',
+  'Finland': '.fi',
+  'France': '.fr',
+  'French Guyana': '.gf',
+  'French Southern Territories': '.tf',
+  'Gabon': '.ga',
+  'Gambia': '.gm',
+  'Georgia': '.ge',
+  'Germany': '.de',
+  'Ghana': '.gh',
+  'Gibraltar': '.gi',
+  'Greece': '.gr',
+  'Greenland': '.gl',
+  'Grenada': '.gd',
+  'Guadeloupe (French)': '.gp',
+  'Guam (USA)': '.gu',
+  'Guatemala': '.gt',
+  'Guinea': '.gn',
+  'Guinea Bissau': '.gw',
+  'Guyana': '.gy',
+  'Haiti': '.ht',
+  'Heard and McDonald Islands': '.hm',
+  'Holy See (Vatican City State)': '.va',
+  'Honduras': '.hn',
+  'Hong Kong': '.hk',
+  'Hungary': '.hu',
+  'Iceland': '.is',
+  'India': '.in',
+  'Indonesia': '.id',
+  'Iraq': '.iq',
+  'Ireland': '.ie',
+  'Israel': '.il',
+  'Italy': '.it',
+  "Ivory Coast (Cote D'Ivoire)": '.ci',
+  'Jamaica': '.jm',
+  'Japan': '.jp',
+  'Jordan': '.jo',
+  'Kazakhstan': '.kz',
+  'Kenya': '.ke',
+  'Kiribati': '.ki',
+  'Kuwait': '.kw',
+  'Kyrgyz Republic (Kyrgyzstan)': '.kg',
+  'Laos': '.la',
+  'Latvia': '.lv',
+  'Lebanon': '.lb',
+  'Lesotho': '.ls',
+  'Liberia': '.lr',
+  'Libya': '.ly',
+  'Liechtenstein': '.li',
+  'Lithuania': '.lt',
+  'Luxembourg': '.lu',
+  'Macau': '.mo',
+  'Macedonia': '.mk',
+  'Madagascar': '.mg',
+  'Malawi': '.mw',
+  'Malaysia': '.my',
+  'Maldives': '.mv',
+  'Mali': '.ml',
+  'Malta': '.mt',
+  'Marshall Islands': '.mh',
+  'Martinique (French)': '.mq',
+  'Mauritania': '.mr',
+  'Mauritius': '.mu',
+  'Mayotte': '.yt',
+  'Mexico': '.mx',
+  'Micronesia': '.fm',
+  'Moldavia': '.md',
+  'Monaco': '.mc',
+  'Mongolia': '.mn',
+  'Montenegro': '.me',
+  'Montserrat': '.ms',
+  'Morocco': '.ma',
+  'Mozambique': '.mz',
+  'Namibia': '.na',
+  'Nauru': '.nr',
+  'Nepal': '.np',
+  'Netherlands': '.nl',
+  'Netherlands Antilles': '.an',
+  'New Caledonia (French)': '.nc',
+  'New Zealand': '.nz',
+  'Nicaragua': '.ni',
+  'Niger': '.ne',
+  'Nigeria': '.ng',
+  'Niue': '.nu',
+  'Northern Mariana Islands': '.mp',
+  'Norway': '.no',
+  'Oman': '.om',
+  'Pakistan': '.pk',
+  'Palau': '.pw',
+  'Palestinian Territories': '.ps',
+  'Panama': '.pa',
+  'Papua New Guinea': '.pg',
+  'Paraguay': '.py',
+  'Peru': '.pe',
+  'Philippines': '.ph',
+  'Pitcairn Island': '.pn',
+  'Poland': '.pl',
+  'Polynesia (French)': '.pf',
+  'Portugal': '.pt',
+  'Puerto Rico': '.pr',
+  'Qatar': '.qa',
+  'Reunion (French)': '.re',
+  'Romania': '.ro',
+  'Russian Federation': '.ru',
+  'Rwanda': '.rw',
+  'South Georgia & South Sandwich Islands': '.gs',
+  'Saint Helena': '.sh',
+  'Saint Kitts & Nevis Anguilla': '.kn',
+  'Saint Lucia': '.lc',
+  'Saint Pierre and Miquelon': '.pm',
+  'Saint Tome (Sao Tome) and Principe': '.st',
+  'Saint Vincent & Grenadines': '.vc',
+  'Samoa': '.ws',
+  'San Marino': '.sm',
+  'Saudi Arabia': '.sa',
+  'Senegal': '.sn',
+  'Serbia': '.rs',
+  'Seychelles': '.sc',
+  'Sierra Leone': '.sl',
+  'Singapore': '.sg',
+  'Slovak Republic': '.sk',
+  'Slovenia': '.si',
+  'Solomon Islands': '.sb',
+  'Somalia': '.so',
+  'South Africa': '.za',
+  'South Korea': '.kr',
+  'Spain': '.es',
+  'Sri Lanka': '.lk',
+  'Suriname': '.sr',
+  'Svalbard and Jan Mayen Islands': '.sj',
+  'Swaziland': '.sz',
+  'Sweden': '.se',
+  'Switzerland': '.ch',
+  'Tadjikistan': '.tj',
+  'Taiwan': '.tw',
+  'Tanzania': '.tz',
+  'Thailand': '.th',
+  'Togo': '.tg',
+  'Tokelau': '.tk',
+  'Tonga': '.to',
+  'Trinidad and Tobago': '.tt',
+  'Tunisia': '.tn',
+  'Turkey': '.tr',
+  'Turkmenistan': '.tm',
+  'Turks and Caicos Islands': '.tc',
+  'Tuvalu': '.tv',
+  'USA Minor Outlying Islands': '.um',
+  'Uganda': '.ug',
+  'Ukraine': '.ua',
+  'United Arab Emirates': '.ae',
+  'United Kingdom': '.uk',
+  'United States': '.us',
+  'Uruguay': '.uy',
+  'Uzbekistan': '.uz',
+  'Vanuatu': '.vu',
+  'Venezuela': '.ve',
+  'Vietnam': '.vn',
+  'Virgin Islands (British)': '.vg',
+  'Virgin Islands (USA)': '.vi',
+  'Wallis and Futuna Islands': '.wf',
+  'Western Sahara': '.eh',
+  'Yemen': '.ye',
+  'Zambia': '.zm',
+  'Zimbabwe': '.zw',
+}