|
Revision 9855, 4.8 kB
(checked in by russellm, 4 months ago)
|
Fixed #10307 -- Removed references to FM/Federated States of Micronesia from the US localflavor STATES_NORMALIZED setting. Thanks to mnd for the report.
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
""" |
|---|
| 2 |
A mapping of state misspellings/abbreviations to normalized abbreviations, and |
|---|
| 3 |
an alphabetical list of states for use as `choices` in a formfield. |
|---|
| 4 |
|
|---|
| 5 |
This exists in this standalone file so that it's only imported into memory |
|---|
| 6 |
when explicitly needed. |
|---|
| 7 |
""" |
|---|
| 8 |
|
|---|
| 9 |
STATE_CHOICES = ( |
|---|
| 10 |
('AL', 'Alabama'), |
|---|
| 11 |
('AK', 'Alaska'), |
|---|
| 12 |
('AS', 'American Samoa'), |
|---|
| 13 |
('AZ', 'Arizona'), |
|---|
| 14 |
('AR', 'Arkansas'), |
|---|
| 15 |
('CA', 'California'), |
|---|
| 16 |
('CO', 'Colorado'), |
|---|
| 17 |
('CT', 'Connecticut'), |
|---|
| 18 |
('DE', 'Delaware'), |
|---|
| 19 |
('DC', 'District of Columbia'), |
|---|
| 20 |
('FL', 'Florida'), |
|---|
| 21 |
('GA', 'Georgia'), |
|---|
| 22 |
('GU', 'Guam'), |
|---|
| 23 |
('HI', 'Hawaii'), |
|---|
| 24 |
('ID', 'Idaho'), |
|---|
| 25 |
('IL', 'Illinois'), |
|---|
| 26 |
('IN', 'Indiana'), |
|---|
| 27 |
('IA', 'Iowa'), |
|---|
| 28 |
('KS', 'Kansas'), |
|---|
| 29 |
('KY', 'Kentucky'), |
|---|
| 30 |
('LA', 'Louisiana'), |
|---|
| 31 |
('ME', 'Maine'), |
|---|
| 32 |
('MD', 'Maryland'), |
|---|
| 33 |
('MA', 'Massachusetts'), |
|---|
| 34 |
('MI', 'Michigan'), |
|---|
| 35 |
('MN', 'Minnesota'), |
|---|
| 36 |
('MS', 'Mississippi'), |
|---|
| 37 |
('MO', 'Missouri'), |
|---|
| 38 |
('MT', 'Montana'), |
|---|
| 39 |
('NE', 'Nebraska'), |
|---|
| 40 |
('NV', 'Nevada'), |
|---|
| 41 |
('NH', 'New Hampshire'), |
|---|
| 42 |
('NJ', 'New Jersey'), |
|---|
| 43 |
('NM', 'New Mexico'), |
|---|
| 44 |
('NY', 'New York'), |
|---|
| 45 |
('NC', 'North Carolina'), |
|---|
| 46 |
('ND', 'North Dakota'), |
|---|
| 47 |
('MP', 'Northern Mariana Islands'), |
|---|
| 48 |
('OH', 'Ohio'), |
|---|
| 49 |
('OK', 'Oklahoma'), |
|---|
| 50 |
('OR', 'Oregon'), |
|---|
| 51 |
('PA', 'Pennsylvania'), |
|---|
| 52 |
('PR', 'Puerto Rico'), |
|---|
| 53 |
('RI', 'Rhode Island'), |
|---|
| 54 |
('SC', 'South Carolina'), |
|---|
| 55 |
('SD', 'South Dakota'), |
|---|
| 56 |
('TN', 'Tennessee'), |
|---|
| 57 |
('TX', 'Texas'), |
|---|
| 58 |
('UT', 'Utah'), |
|---|
| 59 |
('VT', 'Vermont'), |
|---|
| 60 |
('VI', 'Virgin Islands'), |
|---|
| 61 |
('VA', 'Virginia'), |
|---|
| 62 |
('WA', 'Washington'), |
|---|
| 63 |
('WV', 'West Virginia'), |
|---|
| 64 |
('WI', 'Wisconsin'), |
|---|
| 65 |
('WY', 'Wyoming'), |
|---|
| 66 |
) |
|---|
| 67 |
|
|---|
| 68 |
STATES_NORMALIZED = { |
|---|
| 69 |
'ak': 'AK', |
|---|
| 70 |
'al': 'AL', |
|---|
| 71 |
'ala': 'AL', |
|---|
| 72 |
'alabama': 'AL', |
|---|
| 73 |
'alaska': 'AK', |
|---|
| 74 |
'american samao': 'AS', |
|---|
| 75 |
'american samoa': 'AS', |
|---|
| 76 |
'ar': 'AR', |
|---|
| 77 |
'ariz': 'AZ', |
|---|
| 78 |
'arizona': 'AZ', |
|---|
| 79 |
'ark': 'AR', |
|---|
| 80 |
'arkansas': 'AR', |
|---|
| 81 |
'as': 'AS', |
|---|
| 82 |
'az': 'AZ', |
|---|
| 83 |
'ca': 'CA', |
|---|
| 84 |
'calf': 'CA', |
|---|
| 85 |
'calif': 'CA', |
|---|
| 86 |
'california': 'CA', |
|---|
| 87 |
'co': 'CO', |
|---|
| 88 |
'colo': 'CO', |
|---|
| 89 |
'colorado': 'CO', |
|---|
| 90 |
'conn': 'CT', |
|---|
| 91 |
'connecticut': 'CT', |
|---|
| 92 |
'ct': 'CT', |
|---|
| 93 |
'dc': 'DC', |
|---|
| 94 |
'de': 'DE', |
|---|
| 95 |
'del': 'DE', |
|---|
| 96 |
'delaware': 'DE', |
|---|
| 97 |
'deleware': 'DE', |
|---|
| 98 |
'district of columbia': 'DC', |
|---|
| 99 |
'fl': 'FL', |
|---|
| 100 |
'fla': 'FL', |
|---|
| 101 |
'florida': 'FL', |
|---|
| 102 |
'ga': 'GA', |
|---|
| 103 |
'georgia': 'GA', |
|---|
| 104 |
'gu': 'GU', |
|---|
| 105 |
'guam': 'GU', |
|---|
| 106 |
'hawaii': 'HI', |
|---|
| 107 |
'hi': 'HI', |
|---|
| 108 |
'ia': 'IA', |
|---|
| 109 |
'id': 'ID', |
|---|
| 110 |
'idaho': 'ID', |
|---|
| 111 |
'il': 'IL', |
|---|
| 112 |
'ill': 'IL', |
|---|
| 113 |
'illinois': 'IL', |
|---|
| 114 |
'in': 'IN', |
|---|
| 115 |
'ind': 'IN', |
|---|
| 116 |
'indiana': 'IN', |
|---|
| 117 |
'iowa': 'IA', |
|---|
| 118 |
'kan': 'KS', |
|---|
| 119 |
'kans': 'KS', |
|---|
| 120 |
'kansas': 'KS', |
|---|
| 121 |
'kentucky': 'KY', |
|---|
| 122 |
'ks': 'KS', |
|---|
| 123 |
'ky': 'KY', |
|---|
| 124 |
'la': 'LA', |
|---|
| 125 |
'louisiana': 'LA', |
|---|
| 126 |
'ma': 'MA', |
|---|
| 127 |
'maine': 'ME', |
|---|
| 128 |
'marianas islands': 'MP', |
|---|
| 129 |
'marianas islands of the pacific': 'MP', |
|---|
| 130 |
'marinas islands of the pacific': 'MP', |
|---|
| 131 |
'maryland': 'MD', |
|---|
| 132 |
'mass': 'MA', |
|---|
| 133 |
'massachusetts': 'MA', |
|---|
| 134 |
'massachussetts': 'MA', |
|---|
| 135 |
'md': 'MD', |
|---|
| 136 |
'me': 'ME', |
|---|
| 137 |
'mi': 'MI', |
|---|
| 138 |
'mich': 'MI', |
|---|
| 139 |
'michigan': 'MI', |
|---|
| 140 |
'minn': 'MN', |
|---|
| 141 |
'minnesota': 'MN', |
|---|
| 142 |
'miss': 'MS', |
|---|
| 143 |
'mississippi': 'MS', |
|---|
| 144 |
'missouri': 'MO', |
|---|
| 145 |
'mn': 'MN', |
|---|
| 146 |
'mo': 'MO', |
|---|
| 147 |
'mont': 'MT', |
|---|
| 148 |
'montana': 'MT', |
|---|
| 149 |
'mp': 'MP', |
|---|
| 150 |
'ms': 'MS', |
|---|
| 151 |
'mt': 'MT', |
|---|
| 152 |
'n d': 'ND', |
|---|
| 153 |
'n dak': 'ND', |
|---|
| 154 |
'n h': 'NH', |
|---|
| 155 |
'n j': 'NJ', |
|---|
| 156 |
'n m': 'NM', |
|---|
| 157 |
'n mex': 'NM', |
|---|
| 158 |
'nc': 'NC', |
|---|
| 159 |
'nd': 'ND', |
|---|
| 160 |
'ne': 'NE', |
|---|
| 161 |
'neb': 'NE', |
|---|
| 162 |
'nebr': 'NE', |
|---|
| 163 |
'nebraska': 'NE', |
|---|
| 164 |
'nev': 'NV', |
|---|
| 165 |
'nevada': 'NV', |
|---|
| 166 |
'new hampshire': 'NH', |
|---|
| 167 |
'new jersey': 'NJ', |
|---|
| 168 |
'new mexico': 'NM', |
|---|
| 169 |
'new york': 'NY', |
|---|
| 170 |
'nh': 'NH', |
|---|
| 171 |
'nj': 'NJ', |
|---|
| 172 |
'nm': 'NM', |
|---|
| 173 |
'nmex': 'NM', |
|---|
| 174 |
'north carolina': 'NC', |
|---|
| 175 |
'north dakota': 'ND', |
|---|
| 176 |
'northern mariana islands': 'MP', |
|---|
| 177 |
'nv': 'NV', |
|---|
| 178 |
'ny': 'NY', |
|---|
| 179 |
'oh': 'OH', |
|---|
| 180 |
'ohio': 'OH', |
|---|
| 181 |
'ok': 'OK', |
|---|
| 182 |
'okla': 'OK', |
|---|
| 183 |
'oklahoma': 'OK', |
|---|
| 184 |
'or': 'OR', |
|---|
| 185 |
'ore': 'OR', |
|---|
| 186 |
'oreg': 'OR', |
|---|
| 187 |
'oregon': 'OR', |
|---|
| 188 |
'pa': 'PA', |
|---|
| 189 |
'penn': 'PA', |
|---|
| 190 |
'pennsylvania': 'PA', |
|---|
| 191 |
'pr': 'PR', |
|---|
| 192 |
'puerto rico': 'PR', |
|---|
| 193 |
'rhode island': 'RI', |
|---|
| 194 |
'ri': 'RI', |
|---|
| 195 |
's dak': 'SD', |
|---|
| 196 |
'sc': 'SC', |
|---|
| 197 |
'sd': 'SD', |
|---|
| 198 |
'sdak': 'SD', |
|---|
| 199 |
'south carolina': 'SC', |
|---|
| 200 |
'south dakota': 'SD', |
|---|
| 201 |
'tenn': 'TN', |
|---|
| 202 |
'tennessee': 'TN', |
|---|
| 203 |
'territory of hawaii': 'HI', |
|---|
| 204 |
'tex': 'TX', |
|---|
| 205 |
'texas': 'TX', |
|---|
| 206 |
'tn': 'TN', |
|---|
| 207 |
'tx': 'TX', |
|---|
| 208 |
'us virgin islands': 'VI', |
|---|
| 209 |
'usvi': 'VI', |
|---|
| 210 |
'ut': 'UT', |
|---|
| 211 |
'utah': 'UT', |
|---|
| 212 |
'va': 'VA', |
|---|
| 213 |
'vermont': 'VT', |
|---|
| 214 |
'vi': 'VI', |
|---|
| 215 |
'viginia': 'VA', |
|---|
| 216 |
'virgin islands': 'VI', |
|---|
| 217 |
'virgina': 'VA', |
|---|
| 218 |
'virginia': 'VA', |
|---|
| 219 |
'vt': 'VT', |
|---|
| 220 |
'w va': 'WV', |
|---|
| 221 |
'wa': 'WA', |
|---|
| 222 |
'wash': 'WA', |
|---|
| 223 |
'washington': 'WA', |
|---|
| 224 |
'west virginia': 'WV', |
|---|
| 225 |
'wi': 'WI', |
|---|
| 226 |
'wis': 'WI', |
|---|
| 227 |
'wisc': 'WI', |
|---|
| 228 |
'wisconsin': 'WI', |
|---|
| 229 |
'wv': 'WV', |
|---|
| 230 |
'wva': 'WV', |
|---|
| 231 |
'wy': 'WY', |
|---|
| 232 |
'wyo': 'WY', |
|---|
| 233 |
'wyoming': 'WY', |
|---|
| 234 |
} |
|---|