|
1 """ |
|
2 An alphabetical list of provinces and territories for use as `choices` |
|
3 in a formfield., and a mapping of province misspellings/abbreviations to |
|
4 normalized abbreviations |
|
5 |
|
6 Source: http://www.canada.gc.ca/othergov/prov_e.html |
|
7 |
|
8 This exists in this standalone file so that it's only imported into memory |
|
9 when explicitly needed. |
|
10 """ |
|
11 |
|
12 PROVINCE_CHOICES = ( |
|
13 ('AB', 'Alberta'), |
|
14 ('BC', 'British Columbia'), |
|
15 ('MB', 'Manitoba'), |
|
16 ('NB', 'New Brunswick'), |
|
17 ('NF', 'Newfoundland and Labrador'), |
|
18 ('NT', 'Northwest Territories'), |
|
19 ('NS', 'Nova Scotia'), |
|
20 ('NU', 'Nunavut'), |
|
21 ('ON', 'Ontario'), |
|
22 ('PE', 'Prince Edward Island'), |
|
23 ('QC', 'Quebec'), |
|
24 ('SK', 'Saskatchewan'), |
|
25 ('YK', 'Yukon') |
|
26 ) |
|
27 |
|
28 PROVINCES_NORMALIZED = { |
|
29 'ab': 'AB', |
|
30 'alberta': 'AB', |
|
31 'bc': 'BC', |
|
32 'b.c.': 'BC', |
|
33 'british columbia': 'BC', |
|
34 'mb': 'MB', |
|
35 'manitoba': 'MB', |
|
36 'nb': 'NB', |
|
37 'new brunswick': 'NB', |
|
38 'nf': 'NF', |
|
39 'newfoundland': 'NF', |
|
40 'newfoundland and labrador': 'NF', |
|
41 'nt': 'NT', |
|
42 'northwest territories': 'NT', |
|
43 'ns': 'NS', |
|
44 'nova scotia': 'NS', |
|
45 'nu': 'NU', |
|
46 'nunavut': 'NU', |
|
47 'on': 'ON', |
|
48 'ontario': 'ON', |
|
49 'pe': 'PE', |
|
50 'pei': 'PE', |
|
51 'p.e.i.': 'PE', |
|
52 'prince edward island': 'PE', |
|
53 'qc': 'QC', |
|
54 'quebec': 'QC', |
|
55 'sk': 'SK', |
|
56 'saskatchewan': 'SK', |
|
57 'yk': 'YK', |
|
58 'yukon': 'YK', |
|
59 } |