1 | #-*- mode: python; mode: fold -*- |
---|
2 | ##parameters= |
---|
3 | # $Id: getWAeUPVocabularies.py 164 2005-11-10 21:40:01Z joachim $ |
---|
4 | """Return custom vocabularies.""" |
---|
5 | ##'xxx_voc': { |
---|
6 | ## 'type': 'CPS Vocabulary', |
---|
7 | ## 'data': {'tuples': ( |
---|
8 | ## ('', "", ''), |
---|
9 | ## )}, |
---|
10 | ## }, |
---|
11 | ##vocabluaries['xxx'] = xxx_voc |
---|
12 | |
---|
13 | vocabularies = {} |
---|
14 | |
---|
15 | nigerian_states = { ###( |
---|
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 | } |
---|
57 | vocabularies['nigerian_states'] = nigerian_states |
---|
58 | ###) |
---|
59 | |
---|
60 | faculties = { ###( |
---|
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 | } |
---|
76 | vocabularies['faculties'] = faculties |
---|
77 | ###) |
---|
78 | |
---|
79 | level = { ###( |
---|
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 (400 Level)", ''), |
---|
86 | )}, |
---|
87 | } |
---|
88 | vocabularies['courselevel'] = level |
---|
89 | |
---|
90 | ###) |
---|
91 | |
---|
92 | vocabularies['range5'] = {'type': 'CPS Vocabulary', |
---|
93 | 'data': {'tuples': ([('%d' % i, '%d' % i ,'') for i in range(1,6)])}, |
---|
94 | } |
---|
95 | vocabularies['range10'] = {'type': 'CPS Vocabulary', |
---|
96 | 'data': {'tuples': ([('%d' % i, '%d' % i,'') for i in range(1,11)])}, |
---|
97 | } |
---|
98 | vocabularies['range20'] = {'type': 'CPS Vocabulary', |
---|
99 | 'data': {'tuples': ([('%d' % i, '%d' % i,'') for i in range(1,21)])}, |
---|
100 | } |
---|
101 | vocabularies['range50'] = {'type': 'CPS Vocabulary', |
---|
102 | 'data': {'tuples': ([('%d' % i, '%d' % i,'') for i in range(1,51)])}, |
---|
103 | } |
---|
104 | ##'xxx_voc': { |
---|
105 | ## 'type': 'CPS Vocabulary', |
---|
106 | ## 'data': {'tuples': ( |
---|
107 | ## ('', "", ''), |
---|
108 | ## )}, |
---|
109 | ## }, |
---|
110 | |
---|
111 | |
---|
112 | return vocabularies |
---|