source: waeup_product/trunk/skins/waeup_default/getWAeUPVocabularies.py @ 163

Last change on this file since 163 was 153, checked in by joachim, 19 years ago

=corrected some typos

  • Property svn:keywords set to Id
File size: 3.5 KB
Line 
1#-*- mode: python; mode: fold -*-
2##parameters=
3# $Id: getWAeUPVocabularies.py 153 2005-11-04 17:29:06Z 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###)
78
79level = { ###(
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        }
88vocabularies['courselevel'] = level
89
90###)
91
92vocabularies['range5'] = {'type': 'CPS Vocabulary',
93                               'data': {'tuples': ([('%d' % i, '%d' % i ,'') for i in range(1,6)])},
94                          }
95vocabularies['range10'] = {'type': 'CPS Vocabulary',
96                               'data': {'tuples': ([('%d' % i, '%d' % i,'') for i in range(1,11)])},
97                          }
98vocabularies['range20'] = {'type': 'CPS Vocabulary',
99                               'data': {'tuples': ([('%d' % i, '%d' % i,'') for i in range(1,21)])},
100                          }
101vocabularies['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
112return vocabularies
Note: See TracBrowser for help on using the repository browser.