annotate bio/flag_data.json @ 629:f4c043cf55ac

Wiki integration. Requests don't always have sessions. In particular this occurs when a request is made without a trailing slash. The Common middleware redirects when this happens, and the middleware process_request() processing stops before a session can get added. So just set an attribute on the request object for each operation. This seemed weird to me at first, but there are plenty of examples of this in the Django code base already.
author Brian Neal <bgneal@gmail.com>
date Tue, 13 Nov 2012 13:50:06 -0600
parents 678a1a2ef55a
children
rev   line source
bgneal@609 1 {
bgneal@609 2 "ad": "Andorra",
bgneal@609 3 "ae": "United Arab Emirates",
bgneal@609 4 "af": "Afghanistan",
bgneal@609 5 "ag": "Antigua and Barbuda",
bgneal@609 6 "ai": "Anguilla",
bgneal@609 7 "al": "Albania",
bgneal@609 8 "am": "Armenia",
bgneal@609 9 "ao": "Angola",
bgneal@609 10 "aq": "Antarctica",
bgneal@609 11 "ar": "Argentina",
bgneal@609 12 "as": "American Samoa",
bgneal@609 13 "at": "Austria",
bgneal@609 14 "au": "Australia",
bgneal@609 15 "aw": "Aruba",
bgneal@609 16 "ax": "Åland Islands",
bgneal@609 17 "az": "Azerbaijan",
bgneal@609 18 "ba": "Bosnia and Herzegovina",
bgneal@609 19 "bb": "Barbados",
bgneal@609 20 "bd": "Bangladesh",
bgneal@609 21 "be": "Belgium",
bgneal@609 22 "bf": "Burkina Faso",
bgneal@609 23 "bg": "Bulgaria",
bgneal@609 24 "bh": "Bahrain",
bgneal@609 25 "bi": "Burundi",
bgneal@609 26 "bj": "Benin",
bgneal@609 27 "bl": "Saint Barthélemy",
bgneal@609 28 "bm": "Bermuda",
bgneal@609 29 "bn": "Brunei Darussalam",
bgneal@609 30 "bo": "Bolivia",
bgneal@609 31 "br": "Brazil",
bgneal@609 32 "bs": "Bahamas",
bgneal@609 33 "bt": "Bhutan",
bgneal@609 34 "bw": "Botswana",
bgneal@609 35 "by": "Belarus",
bgneal@609 36 "bz": "Belize",
bgneal@609 37 "ca": "Canada",
bgneal@609 38 "cd": "Congo, The Democratic Republic of the",
bgneal@609 39 "cf": "Central African Republic",
bgneal@609 40 "cg": "Congo",
bgneal@609 41 "ch": "Switzerland",
bgneal@609 42 "ci": "Côte d'Ivoire",
bgneal@609 43 "cl": "Chile",
bgneal@609 44 "cm": "Cameroon",
bgneal@609 45 "cn": "China",
bgneal@609 46 "co": "Colombia",
bgneal@609 47 "cr": "Costa Rica",
bgneal@609 48 "cu": "Cuba",
bgneal@609 49 "cv": "Cape Verde",
bgneal@609 50 "cy": "Cyprus",
bgneal@609 51 "cz": "Czech Republic",
bgneal@609 52 "de": "Germany",
bgneal@609 53 "dj": "Djibouti",
bgneal@609 54 "dk": "Denmark",
bgneal@609 55 "dm": "Dominica",
bgneal@609 56 "do": "Dominican Republic",
bgneal@609 57 "dz": "Algeria",
bgneal@609 58 "ec": "Ecuador",
bgneal@609 59 "ee": "Estonia",
bgneal@609 60 "eg": "Egypt",
bgneal@609 61 "eh": "Western Sahara",
bgneal@609 62 "er": "Eritrea",
bgneal@609 63 "es": "Spain",
bgneal@609 64 "et": "Ethiopia",
bgneal@609 65 "fi": "Finland",
bgneal@609 66 "fj": "Fiji",
bgneal@609 67 "fk": "Falkland Islands (Malvinas)",
bgneal@609 68 "fm": "Micronesia, Federated States of",
bgneal@609 69 "fo": "Faroe Islands",
bgneal@609 70 "fr": "France",
bgneal@609 71 "ga": "Gabon",
bgneal@609 72 "gb": "United Kingdom",
bgneal@609 73 "gd": "Grenada",
bgneal@609 74 "ge": "Georgia",
bgneal@609 75 "gg": "Guernsey",
bgneal@609 76 "gh": "Ghana",
bgneal@609 77 "gl": "Greenland",
bgneal@609 78 "gm": "Gambia",
bgneal@609 79 "gn": "Guinea",
bgneal@609 80 "gq": "Equatorial Guinea",
bgneal@609 81 "gr": "Greece",
bgneal@609 82 "gs": "South Georgia and the South Sandwich Islands",
bgneal@609 83 "gt": "Guatemala",
bgneal@609 84 "gu": "Guam",
bgneal@609 85 "gw": "Guinea-Bissau",
bgneal@609 86 "gy": "Guyana",
bgneal@609 87 "hk": "Hong Kong",
bgneal@609 88 "hn": "Honduras",
bgneal@609 89 "hr": "Croatia",
bgneal@609 90 "ht": "Haiti",
bgneal@609 91 "hu": "Hungary",
bgneal@609 92 "id": "Indonesia",
bgneal@609 93 "ie": "Ireland",
bgneal@609 94 "il": "Israel",
bgneal@609 95 "im": "Isle of Man",
bgneal@609 96 "in": "India",
bgneal@609 97 "iq": "Iraq",
bgneal@609 98 "ir": "Iran, Islamic Republic of",
bgneal@609 99 "is": "Iceland",
bgneal@609 100 "it": "Italy",
bgneal@609 101 "je": "Jersey",
bgneal@609 102 "jm": "Jamaica",
bgneal@609 103 "jo": "Jordan",
bgneal@609 104 "jp": "Japan",
bgneal@609 105 "ke": "Kenya",
bgneal@609 106 "kg": "Kyrgyzstan",
bgneal@609 107 "kh": "Cambodia",
bgneal@609 108 "ki": "Kiribati",
bgneal@609 109 "km": "Comoros",
bgneal@609 110 "kn": "Saint Kitts and Nevis",
bgneal@609 111 "kp": "Korea, Democratic People's Republic of",
bgneal@609 112 "kr": "Korea, Republic of",
bgneal@609 113 "kw": "Kuwait",
bgneal@609 114 "ky": "Cayman Islands",
bgneal@609 115 "kz": "Kazakhstan",
bgneal@609 116 "la": "Lao People's Democratic Republic",
bgneal@609 117 "lb": "Lebanon",
bgneal@609 118 "lc": "Saint Lucia",
bgneal@609 119 "li": "Liechtenstein",
bgneal@609 120 "lk": "Sri Lanka",
bgneal@609 121 "lr": "Liberia",
bgneal@609 122 "ls": "Lesotho",
bgneal@609 123 "lt": "Lithuania",
bgneal@609 124 "lu": "Luxembourg",
bgneal@609 125 "lv": "Latvia",
bgneal@609 126 "ly": "Libya",
bgneal@609 127 "ma": "Morocco",
bgneal@609 128 "mc": "Monaco",
bgneal@609 129 "md": "Moldova",
bgneal@609 130 "me": "Montenegro",
bgneal@609 131 "mg": "Madagascar",
bgneal@609 132 "mh": "Marshall Islands",
bgneal@609 133 "mk": "Macedonia, Republic of",
bgneal@609 134 "ml": "Mali",
bgneal@609 135 "mm": "Myanmar",
bgneal@609 136 "mn": "Mongolia",
bgneal@609 137 "mo": "Macao",
bgneal@609 138 "mp": "Northern Mariana Islands",
bgneal@609 139 "mr": "Mauritania",
bgneal@609 140 "ms": "Montserrat",
bgneal@609 141 "mt": "Malta",
bgneal@609 142 "mu": "Mauritius",
bgneal@609 143 "mv": "Maldives",
bgneal@609 144 "mw": "Malawi",
bgneal@609 145 "mx": "Mexico",
bgneal@609 146 "my": "Malaysia",
bgneal@609 147 "mz": "Mozambique",
bgneal@609 148 "na": "Namibia",
bgneal@609 149 "ne": "Niger",
bgneal@609 150 "nf": "Norfolk Island",
bgneal@609 151 "ng": "Nigeria",
bgneal@609 152 "ni": "Nicaragua",
bgneal@609 153 "nl": "Netherlands",
bgneal@609 154 "no": "Norway",
bgneal@609 155 "np": "Nepal",
bgneal@609 156 "nr": "Nauru",
bgneal@609 157 "nz": "New Zealand",
bgneal@609 158 "om": "Oman",
bgneal@609 159 "pa": "Panama",
bgneal@609 160 "pe": "Peru",
bgneal@609 161 "pg": "Papua New Guinea",
bgneal@609 162 "ph": "Philippines",
bgneal@609 163 "pk": "Pakistan",
bgneal@609 164 "pl": "Poland",
bgneal@609 165 "pn": "Pitcairn",
bgneal@609 166 "pr": "Puerto Rico",
bgneal@609 167 "ps": "Palestinian Territory, Occupied",
bgneal@609 168 "pt": "Portugal",
bgneal@609 169 "pw": "Palau",
bgneal@609 170 "py": "Paraguay",
bgneal@609 171 "qa": "Qatar",
bgneal@609 172 "ro": "Romania",
bgneal@609 173 "rs": "Serbia",
bgneal@609 174 "ru": "Russian Federation",
bgneal@609 175 "rw": "Rwanda",
bgneal@609 176 "sa": "Saudi Arabia",
bgneal@609 177 "sb": "Solomon Islands",
bgneal@609 178 "sc": "Seychelles",
bgneal@609 179 "sd": "Sudan",
bgneal@609 180 "se": "Sweden",
bgneal@609 181 "sg": "Singapore",
bgneal@609 182 "sh": "Saint Helena, Ascension and Tristan da Cunha",
bgneal@609 183 "si": "Slovenia",
bgneal@609 184 "sk": "Slovakia",
bgneal@609 185 "sl": "Sierra Leone",
bgneal@609 186 "sm": "San Marino",
bgneal@609 187 "sn": "Senegal",
bgneal@609 188 "so": "Somalia",
bgneal@609 189 "sr": "Suriname",
bgneal@609 190 "st": "Sao Tome and Principe",
bgneal@609 191 "sv": "El Salvador",
bgneal@609 192 "sy": "Syrian Arab Republic",
bgneal@609 193 "sz": "Swaziland",
bgneal@609 194 "tc": "Turks and Caicos Islands",
bgneal@609 195 "td": "Chad",
bgneal@609 196 "tg": "Togo",
bgneal@609 197 "th": "Thailand",
bgneal@609 198 "tj": "Tajikistan",
bgneal@609 199 "tl": "Timor-Leste",
bgneal@609 200 "tm": "Turkmenistan",
bgneal@609 201 "tn": "Tunisia",
bgneal@609 202 "to": "Tonga",
bgneal@609 203 "tr": "Turkey",
bgneal@609 204 "tt": "Trinidad and Tobago",
bgneal@609 205 "tv": "Tuvalu",
bgneal@609 206 "tw": "Taiwan",
bgneal@609 207 "tz": "Tanzania, United Republic of",
bgneal@609 208 "ua": "Ukraine",
bgneal@609 209 "ug": "Uganda",
bgneal@609 210 "us": "United States",
bgneal@609 211 "uy": "Uruguay",
bgneal@609 212 "uz": "Uzbekistan",
bgneal@609 213 "vc": "Saint Vincent and the Grenadines",
bgneal@609 214 "ve": "Venezuela",
bgneal@609 215 "vg": "Virgin Islands, British",
bgneal@609 216 "vi": "Virgin Islands, U.S.",
bgneal@609 217 "vn": "Viet Nam",
bgneal@609 218 "vu": "Vanuatu",
bgneal@609 219 "ws": "Samoa",
bgneal@609 220 "ye": "Yemen",
bgneal@609 221 "za": "South Africa",
bgneal@609 222 "zm": "Zambia",
bgneal@609 223 "zw": "Zimbabwe"
bgneal@609 224 }