PageRenderTime 16ms CodeModel.GetById 1ms app.highlight 12ms RepoModel.GetById 1ms app.codeStats 0ms

/django/contrib/localflavor/id/id_choices.py

https://code.google.com/p/mango-py/
Python | 107 lines | 99 code | 5 blank | 3 comment | 0 complexity | bad6df57bd84ba32916d00634d95d6ff MD5 | raw file
  1import warnings
  2from django.utils.translation import ugettext_lazy as _
  3
  4# Reference: http://id.wikipedia.org/wiki/Daftar_provinsi_Indonesia
  5
  6# Indonesia does not have an official Province code standard.
  7# I decided to use unambiguous and consistent (some are common) 3-letter codes.
  8
  9warnings.warn(
 10    'There have been recent changes to the ID localflavor. See the release notes for details',
 11    RuntimeWarning
 12)
 13
 14PROVINCE_CHOICES = (
 15    ('ACE', _('Aceh')),
 16    ('BLI', _('Bali')),
 17    ('BTN', _('Banten')),
 18    ('BKL', _('Bengkulu')),
 19    ('DIY', _('Yogyakarta')),
 20    ('JKT', _('Jakarta')),
 21    ('GOR', _('Gorontalo')),
 22    ('JMB', _('Jambi')),
 23    ('JBR', _('Jawa Barat')),
 24    ('JTG', _('Jawa Tengah')),
 25    ('JTM', _('Jawa Timur')),
 26    ('KBR', _('Kalimantan Barat')),
 27    ('KSL', _('Kalimantan Selatan')),
 28    ('KTG', _('Kalimantan Tengah')),
 29    ('KTM', _('Kalimantan Timur')),
 30    ('BBL', _('Kepulauan Bangka-Belitung')),
 31    ('KRI', _('Kepulauan Riau')),
 32    ('LPG', _('Lampung')),
 33    ('MLK', _('Maluku')),
 34    ('MUT', _('Maluku Utara')),
 35    ('NTB', _('Nusa Tenggara Barat')),
 36    ('NTT', _('Nusa Tenggara Timur')),
 37    ('PPA', _('Papua')),
 38    ('PPB', _('Papua Barat')),
 39    ('RIU', _('Riau')),
 40    ('SLB', _('Sulawesi Barat')),
 41    ('SLS', _('Sulawesi Selatan')),
 42    ('SLT', _('Sulawesi Tengah')),
 43    ('SLR', _('Sulawesi Tenggara')),
 44    ('SLU', _('Sulawesi Utara')),
 45    ('SMB', _('Sumatera Barat')),
 46    ('SMS', _('Sumatera Selatan')),
 47    ('SMU', _('Sumatera Utara')),
 48)
 49
 50LICENSE_PLATE_PREFIX_CHOICES = (
 51    ('A', _('Banten')),
 52    ('AA', _('Magelang')),
 53    ('AB', _('Yogyakarta')),
 54    ('AD', _('Surakarta - Solo')),
 55    ('AE', _('Madiun')),
 56    ('AG', _('Kediri')),
 57    ('B', _('Jakarta')),
 58    ('BA', _('Sumatera Barat')),
 59    ('BB', _('Tapanuli')),
 60    ('BD', _('Bengkulu')),
 61    ('BE', _('Lampung')),
 62    ('BG', _('Sumatera Selatan')),
 63    ('BH', _('Jambi')),
 64    ('BK', _('Sumatera Utara')),
 65    ('BL', _('Nanggroe Aceh Darussalam')),
 66    ('BM', _('Riau')),
 67    ('BN', _('Kepulauan Bangka Belitung')),
 68    ('BP', _('Kepulauan Riau')),
 69    ('CC', _('Corps Consulate')),
 70    ('CD', _('Corps Diplomatic')),
 71    ('D', _('Bandung')),
 72    ('DA', _('Kalimantan Selatan')),
 73    ('DB', _('Sulawesi Utara Daratan')),
 74    ('DC', _('Sulawesi Barat')),
 75    ('DD', _('Sulawesi Selatan')),
 76    ('DE', _('Maluku')),
 77    ('DG', _('Maluku Utara')),
 78    ('DH', _('NTT - Timor')),
 79    ('DK', _('Bali')),
 80    ('DL', _('Sulawesi Utara Kepulauan')),
 81    ('DM', _('Gorontalo')),
 82    ('DN', _('Sulawesi Tengah')),
 83    ('DR', _('NTB - Lombok')),
 84    ('DS', _('Papua dan Papua Barat')),
 85    ('DT', _('Sulawesi Tenggara')),
 86    ('E', _('Cirebon')),
 87    ('EA', _('NTB - Sumbawa')),
 88    ('EB', _('NTT - Flores')),
 89    ('ED', _('NTT - Sumba')),
 90    ('F', _('Bogor')),
 91    ('G', _('Pekalongan')),
 92    ('H', _('Semarang')),
 93    ('K', _('Pati')),
 94    ('KB', _('Kalimantan Barat')),
 95    ('KH', _('Kalimantan Tengah')),
 96    ('KT', _('Kalimantan Timur')),
 97    ('L', _('Surabaya')),
 98    ('M', _('Madura')),
 99    ('N', _('Malang')),
100    ('P', _('Jember')),
101    ('R', _('Banyumas')),
102    ('RI', _('Federal Government')),
103    ('S', _('Bojonegoro')),
104    ('T', _('Purwakarta')),
105    ('W', _('Sidoarjo')),
106    ('Z', _('Garut')),
107)