[153] | 1 | #-*- mode: python; mode: fold -*- |
---|
[19] | 2 | ##parameters= |
---|
| 3 | # $Id: getWAeUPVocabularies.py 153 2005-11-04 17:29:06Z joachim $ |
---|
| 4 | """Return custom vocabularies.""" |
---|
[57] | 5 | ##'xxx_voc': { |
---|
| 6 | ## 'type': 'CPS Vocabulary', |
---|
| 7 | ## 'data': {'tuples': ( |
---|
| 8 | ## ('', "", ''), |
---|
| 9 | ## )}, |
---|
| 10 | ## }, |
---|
| 11 | ##vocabluaries['xxx'] = xxx_voc |
---|
[19] | 12 | |
---|
| 13 | vocabularies = {} |
---|
| 14 | |
---|
[153] | 15 | nigerian_states = { ###( |
---|
[57] | 16 | 'type': 'CPS Vocabulary', |
---|
| 17 | 'data': {'tuples': ( |
---|
| 18 | ('abia', "Abia", ''), |
---|
| 19 | ('adam', "Adamawa", ''), |
---|
| 20 | ('akwa', "Akwa Ibom", ''), |
---|
| 21 | ('anam', "Anambra", ''), |
---|
| 22 | ('bauchi', "Bauchi", ''), |
---|
| 23 | ('baye', "Bayelsa", ''), |
---|
| 24 | ('benu', "Benue", ''), |
---|
| 25 | ('born', "Borno", ''), |
---|
| 26 | ('cro', "Cross River", ''), |
---|
| 27 | ('delt', "Delta", ''), |
---|
| 28 | ('ebon', "Ebonyi", ''), |
---|
| 29 | ('edo', "edo", ''), |
---|
| 30 | ('ekit', "Ekiti", ''), |
---|
| 31 | ('enug', "Enugu", ''), |
---|
| 32 | ('gomb', "Gombe", ''), |
---|
| 33 | ('imo', "Imo", ''), |
---|
| 34 | ('jiga', "Jigawa", ''), |
---|
| 35 | ('kad', "Kaduna", ''), |
---|
| 36 | ('kano', "Kano", ''), |
---|
| 37 | ('kats', "Katsina", ''), |
---|
| 38 | ('keb', "Kebbi", ''), |
---|
| 39 | ('kogi', "Kogi", ''), |
---|
| 40 | ('kwar', "Kwara", ''), |
---|
| 41 | ('lag', "Lagos", ''), |
---|
| 42 | ('nasa', "Nasawara", ''), |
---|
| 43 | ('nige', "Niger", ''), |
---|
| 44 | ('ogun', "Ogun", ''), |
---|
| 45 | ('ondo', "Ondo", ''), |
---|
| 46 | ('osun', "Osun", ''), |
---|
| 47 | ('oyo', "oyo", ''), |
---|
| 48 | ('plat', "Plateau", ''), |
---|
| 49 | ('riv', "Rivers", ''), |
---|
| 50 | ('sok', "Sokoto", ''), |
---|
| 51 | ('tar', "Taraba", ''), |
---|
| 52 | ('yobe', "Yobe", ''), |
---|
| 53 | ('zam', "Zamfara", ''), |
---|
| 54 | ('fct', "FCT", ''), |
---|
| 55 | )}, |
---|
| 56 | } |
---|
[153] | 57 | vocabularies['nigerian_states'] = nigerian_states |
---|
| 58 | ###) |
---|
[57] | 59 | |
---|
[153] | 60 | faculties = { ###( |
---|
[57] | 61 | 'type': 'CPS Vocabulary', |
---|
| 62 | 'data': {'tuples': ( |
---|
| 63 | ('agri', "Agriculture", ''), |
---|
| 64 | ('arts', "Arts", ''), |
---|
| 65 | ('bmed', "Basic Med Sciences", ''), |
---|
| 66 | ('edu', "Education", ''), |
---|
| 67 | ('eng', "Engeneering", ''), |
---|
| 68 | ('law', "Law", ''), |
---|
| 69 | ('phar', "Pharmacy", ''), |
---|
| 70 | ('sod', "School of Denistry", ''), |
---|
| 71 | ('som', "School of Medicine", ''), |
---|
| 72 | ('sci', "Science", ''), |
---|
| 73 | ('soc', "Social Science", ''), |
---|
| 74 | )}, |
---|
| 75 | } |
---|
[153] | 76 | vocabularies['faculties'] = faculties |
---|
| 77 | ###) |
---|
| 78 | |
---|
| 79 | level = { ###( |
---|
[103] | 80 | 'type': 'CPS Vocabulary', |
---|
| 81 | 'data': {'tuples': ( |
---|
| 82 | ('100', "Year 1 (100 Level)", ''), |
---|
| 83 | ('200', "Year 2 (200 Level)", ''), |
---|
| 84 | ('300', "Year 3 (300 Level)", ''), |
---|
| 85 | ('400', "Year 4 (100 Level)", ''), |
---|
| 86 | )}, |
---|
| 87 | } |
---|
[153] | 88 | vocabularies['courselevel'] = level |
---|
[57] | 89 | |
---|
[153] | 90 | ###) |
---|
| 91 | |
---|
[103] | 92 | vocabularies['range5'] = {'type': 'CPS Vocabulary', |
---|
[136] | 93 | 'data': {'tuples': ([('%d' % i, '%d' % i ,'') for i in range(1,6)])}, |
---|
[103] | 94 | } |
---|
| 95 | vocabularies['range10'] = {'type': 'CPS Vocabulary', |
---|
[136] | 96 | 'data': {'tuples': ([('%d' % i, '%d' % i,'') for i in range(1,11)])}, |
---|
[103] | 97 | } |
---|
| 98 | vocabularies['range20'] = {'type': 'CPS Vocabulary', |
---|
[136] | 99 | 'data': {'tuples': ([('%d' % i, '%d' % i,'') for i in range(1,21)])}, |
---|
[103] | 100 | } |
---|
| 101 | vocabularies['range50'] = {'type': 'CPS Vocabulary', |
---|
[136] | 102 | 'data': {'tuples': ([('%d' % i, '%d' % i,'') for i in range(1,51)])}, |
---|
[103] | 103 | } |
---|
| 104 | ##'xxx_voc': { |
---|
| 105 | ## 'type': 'CPS Vocabulary', |
---|
| 106 | ## 'data': {'tuples': ( |
---|
| 107 | ## ('', "", ''), |
---|
| 108 | ## )}, |
---|
| 109 | ## }, |
---|
| 110 | |
---|
| 111 | |
---|
[19] | 112 | return vocabularies |
---|