[153] | 1 | #-*- mode: python; mode: fold -*- |
---|
[19] | 2 | ##parameters= |
---|
| 3 | # $Id: getWAeUPVocabularies.py 173 2005-11-15 16:28:29Z 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 | ###) |
---|
[173] | 78 | get_faculties_voc = { ###( |
---|
| 79 | 'type': 'CPS Method Vocabulary', |
---|
| 80 | 'data': {'get_vocabulary_method': 'get_faculties_voc',} |
---|
| 81 | } |
---|
| 82 | vocabularies['get_faculties_voc'] = get_faculties_voc |
---|
| 83 | ###) |
---|
| 84 | get_departments_voc = { ###( |
---|
| 85 | 'type': 'CPS Method Vocabulary', |
---|
| 86 | 'data': {'get_vocabulary_method': 'get_departments_voc',} |
---|
| 87 | } |
---|
| 88 | vocabularies['get_departments_voc'] = get_departments_voc |
---|
| 89 | ###) |
---|
[153] | 90 | |
---|
| 91 | level = { ###( |
---|
[103] | 92 | 'type': 'CPS Vocabulary', |
---|
| 93 | 'data': {'tuples': ( |
---|
| 94 | ('100', "Year 1 (100 Level)", ''), |
---|
| 95 | ('200', "Year 2 (200 Level)", ''), |
---|
| 96 | ('300', "Year 3 (300 Level)", ''), |
---|
[164] | 97 | ('400', "Year 4 (400 Level)", ''), |
---|
[103] | 98 | )}, |
---|
| 99 | } |
---|
[153] | 100 | vocabularies['courselevel'] = level |
---|
[57] | 101 | |
---|
[153] | 102 | ###) |
---|
| 103 | |
---|
[103] | 104 | vocabularies['range5'] = {'type': 'CPS Vocabulary', |
---|
[136] | 105 | 'data': {'tuples': ([('%d' % i, '%d' % i ,'') for i in range(1,6)])}, |
---|
[103] | 106 | } |
---|
| 107 | vocabularies['range10'] = {'type': 'CPS Vocabulary', |
---|
[136] | 108 | 'data': {'tuples': ([('%d' % i, '%d' % i,'') for i in range(1,11)])}, |
---|
[103] | 109 | } |
---|
| 110 | vocabularies['range20'] = {'type': 'CPS Vocabulary', |
---|
[136] | 111 | 'data': {'tuples': ([('%d' % i, '%d' % i,'') for i in range(1,21)])}, |
---|
[103] | 112 | } |
---|
| 113 | vocabularies['range50'] = {'type': 'CPS Vocabulary', |
---|
[136] | 114 | 'data': {'tuples': ([('%d' % i, '%d' % i,'') for i in range(1,51)])}, |
---|
[103] | 115 | } |
---|
| 116 | ##'xxx_voc': { |
---|
| 117 | ## 'type': 'CPS Vocabulary', |
---|
| 118 | ## 'data': {'tuples': ( |
---|
| 119 | ## ('', "", ''), |
---|
| 120 | ## )}, |
---|
| 121 | ## }, |
---|
| 122 | |
---|
| 123 | |
---|
[19] | 124 | return vocabularies |
---|