source: WAeUP_SRP/branches/srpp_branch/skins/waeup_default/getWAeUPVocabularies.py @ 5594

Last change on this file since 5594 was 173, checked in by joachim, 19 years ago

=added Faculties and Departments in install + other cosmetics

  • Property svn:keywords set to Id
File size: 3.9 KB
Line 
1#-*- mode: python; mode: fold -*-
2##parameters=
3# $Id: getWAeUPVocabularies.py 173 2005-11-15 16:28:29Z joachim $
4"""Return custom vocabularies."""
5##'xxx_voc': {
6##        'type': 'CPS Vocabulary',
7##        'data': {'tuples': (
8##            ('', "", ''),
9##            )},
10##        },
11##vocabluaries['xxx'] = xxx_voc
12
13vocabularies = {}
14
15nigerian_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        }
57vocabularies['nigerian_states'] = nigerian_states
58###)
59
60faculties = { ###(
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        }
76vocabularies['faculties'] = faculties
77###)
78get_faculties_voc = { ###(
79        'type': 'CPS Method Vocabulary',
80        'data': {'get_vocabulary_method': 'get_faculties_voc',}
81        }
82vocabularies['get_faculties_voc'] = get_faculties_voc
83###)
84get_departments_voc = { ###(
85        'type': 'CPS Method Vocabulary',
86        'data': {'get_vocabulary_method': 'get_departments_voc',}
87        }
88vocabularies['get_departments_voc'] = get_departments_voc
89###)
90
91level = { ###(
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)", ''),
97            ('400', "Year 4 (400 Level)", ''),
98            )},
99        }
100vocabularies['courselevel'] = level
101
102###)
103
104vocabularies['range5'] = {'type': 'CPS Vocabulary',
105                               'data': {'tuples': ([('%d' % i, '%d' % i ,'') for i in range(1,6)])},
106                          }
107vocabularies['range10'] = {'type': 'CPS Vocabulary',
108                               'data': {'tuples': ([('%d' % i, '%d' % i,'') for i in range(1,11)])},
109                          }
110vocabularies['range20'] = {'type': 'CPS Vocabulary',
111                               'data': {'tuples': ([('%d' % i, '%d' % i,'') for i in range(1,21)])},
112                          }
113vocabularies['range50'] = {'type': 'CPS Vocabulary',
114                               'data': {'tuples': ([('%d' % i, '%d' % i,'') for i in range(1,51)])},
115                          }
116##'xxx_voc': {
117##        'type': 'CPS Vocabulary',
118##        'data': {'tuples': (
119##            ('', "", ''),
120##            )},
121##        },
122
123
124return vocabularies
Note: See TracBrowser for help on using the repository browser.