source: waeup_product/trunk/skins/waeup_default/getWAeUPSchemas.py @ 81

Last change on this file since 81 was 78, checked in by joachim, 19 years ago

=faculty

  • Property svn:keywords set to Id
File size: 8.3 KB
Line 
1#-*- mode: python; mode: fold -*-
2# $Id: getWAeUPSchemas.py 78 2005-10-22 12:10:25Z joachim $
3
4university_schema = { ###(
5}
6###)
7
8students_folder_schema = { ###(
9}
10###)
11
12student_schema = { ###(
13     'jamb_is_admitted': {
14        'type': 'CPS Boolean Field',
15        'data': {
16            'default_expr': 'python:False',
17            'is_searchabletext': 0,
18            'acl_read_permissions': '',
19            'acl_read_roles': '',
20            'acl_read_expr': '',
21            'acl_write_permissions': '',
22            'acl_write_roles': '',
23            'acl_write_expr': '',
24            'read_ignore_storage': False,
25            'read_process_expr': '',
26            'read_process_dependent_fields': (),
27            'write_ignore_storage': False,
28            'write_process_expr': '',
29        },
30    },
31    'faculty': {
32        'type': 'CPS String Field',
33        'data': {
34            'default_expr': 'string:',
35            'is_searchabletext': True,
36            'acl_read_permissions': '',
37            'acl_read_roles': '',
38            'acl_read_expr': '',
39            'acl_write_permissions': '',
40            'acl_write_roles': '',
41            'acl_write_expr': '',
42            'read_ignore_storage': False,
43            'read_process_expr': '',
44            'read_process_dependent_fields': (),
45            'write_ignore_storage': False,
46            'write_process_expr': '',
47        },
48    },
49}
50#
51###)
52
53student_personal_schema = { ###(
54     'firstname': {
55        'type': 'CPS String Field',
56        'data': {
57            'is_searchabletext': 1,
58        },
59    },
60    'middlename': {
61        'type': 'CPS String Field',
62        'data': {
63            'is_searchabletext': 1,
64        },
65    },
66     'lastname': {
67        'type': 'CPS String Field',
68        'data': {
69            'is_searchabletext': 1,
70        },
71    },
72     'sex': {
73        'type': 'CPS Boolean Field',
74        'default_expr': 'python:True',
75        'data': {
76            'is_searchabletext': 1,
77        },
78    },
79     'birthday': {
80        'type': 'CPS DateTime Field',
81        'data': {
82            'is_searchabletext': 1,
83        },
84    },
85     'age': {
86        'type': 'CPS DateTime Field',
87        'data': {
88            'is_searchabletext': 1,
89        },
90    },
91     'state': {
92        'type': 'CPS DateTime Field',
93        'data': {
94            'is_searchabletext': 1,
95        },
96    },
97}
98###)
99
100jamb_schema = { ###(
101    'reg_nr': {
102        'type': 'CPS String Field',
103        'data': {
104            'default_expr': 'string:',
105            'is_searchabletext': True,
106        },
107    },
108    'admission_sc_id': {
109        'type': 'CPS String Field',
110        'data': {
111            'is_searchabletext': True,
112        },
113    },
114    'admission_sc_pin': {
115        'type': 'CPS String Field',
116        'data': {
117            'is_searchabletext': True,
118        },
119    },
120    'admission_sc_pin_usage': {
121        'type': 'CPS Int Field',
122        'data': {
123            'default_expr': 'python:0',
124            'is_searchabletext': False,
125            },
126    },
127     'firstname': {
128        'type': 'CPS String Field',
129        'data': {
130            'is_searchabletext': 1,
131        },
132    },
133    'middlename': {
134        'type': 'CPS String Field',
135        'data': {
136            'is_searchabletext': 1,
137        },
138    },
139     'lastname': {
140        'type': 'CPS String Field',
141        'data': {
142            'is_searchabletext': 1,
143        },
144    },
145    'age': {
146        'type': 'CPS Int Field',
147        'data': {
148            'default_expr': 'python:20',
149            'is_searchabletext': False,
150        },
151    },
152    'sex': {
153        'type': 'CPS Boolean Field',
154        'data': {
155            'default_expr': 'python:0',
156            'is_searchabletext': False,
157        },
158    },
159    'state': {
160        'type': 'CPS String Field',
161        'data': {
162            'default_expr': 'string:',
163            'is_searchabletext': False,
164        },
165    },
166    'exam_results': {
167        'type': 'CPS String Field',
168        'data': {
169            'default_expr': 'string:',
170        },
171    },
172    'aggregate': {
173        'type': 'CPS String Field',
174        'data': {
175            'default_expr': 'string:',
176            'is_searchabletext': False,
177        },
178    },
179    'faculty': {
180        'type': 'CPS String Field',
181        'data': {
182            'default_expr': 'string:',
183            'is_searchabletext': False,
184        },
185    },
186    'listing_date': {
187        'type': 'CPS DateTime Field',
188        'data': {
189            'is_searchabletext': False,
190        },
191    },
192##    '2nd_choice': { ###(
193##        'type': 'CPS String Field',
194##        'data': {
195##            'default_expr': 'string:',
196##            'is_searchabletext': False,
197##            'acl_read_permissions': '',
198##            'acl_read_roles': '',
199##            'acl_read_expr': '',
200##            'acl_write_permissions': '',
201##            'acl_write_roles': '',
202##            'acl_write_expr': '',
203##            'read_ignore_storage': False,
204##            'read_process_expr': '',
205##            'read_process_dependent_fields': (),
206##            'write_ignore_storage': False,
207##            'write_process_expr': '',
208##        },
209##    },
210##    '3rd_choice': {
211##        'type': 'CPS String Field',
212##        'data': {
213##            'default_expr': 'string:',
214##            'is_searchabletext': True,
215##            'acl_read_permissions': '',
216##            'acl_read_roles': '',
217##            'acl_read_expr': '',
218##            'acl_write_permissions': '',
219##            'acl_write_roles': '',
220##            'acl_write_expr': '',
221##            'read_ignore_storage': False,
222##            'read_process_expr': '',
223##            'read_process_dependent_fields': (),
224##            'write_ignore_storage': False,
225##            'write_process_expr': '',
226##        },
227##    },
228###)
229}
230
231
232###)
233
234faculty_schema = { ###(
235}###)
236
237department_schema = { ###(
238}###)
239
240course_schema = { ###(
241    'level': {
242        'type': 'CPS String Field',
243        'data': {
244            'default_expr': 'string:',
245            'is_searchabletext': True,
246        },
247    },
248    'code': {
249        'type': 'CPS String Field',
250        'data': {
251            'default_expr': 'string:',
252            'is_searchabletext': True,
253        },
254    },
255    'semester': {
256        'type': 'CPS Boolean Field',
257        'data': {
258            'default_expr': 'python:True',
259            'is_searchabletext': False,
260        },
261    },
262    'credit': {
263        'type': 'CPS Int Field',
264        'data': {
265            'default_expr': 'string:',
266            'is_searchabletext': False,
267        },
268    },
269    'core_elective': {
270        'type': 'CPS Boolean Field',
271        'data': {
272            'default_expr': 'python:True',
273            'is_searchabletext': False,
274        },
275    },
276}###)
277
278##scratch_card = { ###(
279####   'allow_discussion': {
280####        'type': 'CPS Int Field',
281####        'data': {
282####            'default_expr': 'python:0',
283####            'is_searchabletext': 0,
284####            },
285####        },
286##     'sc_id': {
287##        'type': 'CPS String Field',
288##        'data': {
289##            'default_expr': '',
290##            'is_searchabletext': 0,
291##            'acl_read_permissions': '',
292##            'acl_read_roles': '',
293##            'acl_read_expr': '',
294##            'acl_write_permissions': '',
295##            'acl_write_roles': '',
296##            'acl_write_expr': '',
297##            'read_ignore_storage': False,
298##            'read_process_expr': '',
299##            'read_process_dependent_fields': (),
300##            'write_ignore_storage': False,
301##            'write_process_expr': '',
302##        },
303##    },
304##     'sc_pin': {
305##        'type': 'CPS String Field',
306##        'data': {
307##            'default_expr': '',
308##            'is_searchabletext': 0,
309##            'acl_read_permissions': '',
310##            'acl_read_roles': '',
311##            'acl_read_expr': '',
312##            'acl_write_permissions': '',
313##            'acl_write_roles': '',
314##            'acl_write_expr': '',
315##            'read_ignore_storage': False,
316##            'read_process_expr': '',
317##            'read_process_dependent_fields': (),
318##            'write_ignore_storage': False,
319##            'write_process_expr': '',
320##        },
321##    },
322##}
323schemas = {}
324###)
325
326schemas['university'] = university_schema
327schemas['students'] = students_folder_schema
328schemas['student'] = student_schema
329schemas['student_personal'] = student_personal_schema
330schemas['jamb'] = jamb_schema
331#schemas['scratch_card'] = scratch_card
332schemas['faculty'] = faculty_schema
333schemas['department'] = department_schema
334schemas['course'] = course_schema
335
336return schemas
Note: See TracBrowser for help on using the repository browser.