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