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

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

=student accomodation

  • Property svn:keywords set to Id
File size: 11.8 KB
Line 
1#-*- mode: python; mode: fold -*-
2# $Id: getWAeUPSchemas.py 107 2005-10-27 23:58:38Z 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    'course': {
50        'type': 'CPS String Field',
51        'data': {
52            'default_expr': 'string:',
53            'is_searchabletext': True,
54            'acl_read_permissions': '',
55            'acl_read_roles': '',
56            'acl_read_expr': '',
57            'acl_write_permissions': '',
58            'acl_write_roles': '',
59            'acl_write_expr': '',
60            'read_ignore_storage': False,
61            'read_process_expr': '',
62            'read_process_dependent_fields': (),
63            'write_ignore_storage': False,
64            'write_process_expr': '',
65        },
66    },
67    'accommodation_sc_id': {
68        'type': 'CPS String Field',
69        'data': {
70            'default_expr': 'string:',
71            'is_searchabletext': True,
72            'acl_read_permissions': '',
73            'acl_read_roles': '',
74            'acl_read_expr': '',
75            'acl_write_permissions': '',
76            'acl_write_roles': '',
77            'acl_write_expr': '',
78            'read_ignore_storage': False,
79            'read_process_expr': '',
80            'read_process_dependent_fields': (),
81            'write_ignore_storage': False,
82            'write_process_expr': '',
83        },
84    },
85    'accommodation_sc_pin': {
86        'type': 'CPS String Field',
87        'data': {
88            'default_expr': 'string:',
89            'is_searchabletext': True,
90            'acl_read_permissions': '',
91            'acl_read_roles': '',
92            'acl_read_expr': '',
93            'acl_write_permissions': '',
94            'acl_write_roles': '',
95            'acl_write_expr': '',
96            'read_ignore_storage': False,
97            'read_process_expr': '',
98            'read_process_dependent_fields': (),
99            'write_ignore_storage': False,
100            'write_process_expr': '',
101        },
102    },
103}
104#
105###)
106
107student_personal_schema = { ###(
108     'firstname': {
109        'type': 'CPS String Field',
110        'data': {
111            'is_searchabletext': 1,
112        },
113    },
114    'middlename': {
115        'type': 'CPS String Field',
116        'data': {
117            'is_searchabletext': 1,
118        },
119    },
120     'lastname': {
121        'type': 'CPS String Field',
122        'data': {
123            'is_searchabletext': 1,
124        },
125    },
126     'sex': {
127        'type': 'CPS Boolean Field',
128        'default_expr': 'python:True',
129        'data': {
130            'is_searchabletext': 1,
131        },
132    },
133     'birthday': {
134        'type': 'CPS DateTime Field',
135        'data': {
136            'is_searchabletext': 1,
137        },
138    },
139     'age': {
140        'type': 'CPS DateTime Field',
141        'data': {
142            'is_searchabletext': 1,
143        },
144    },
145     'state': {
146        'type': 'CPS DateTime Field',
147        'data': {
148            'is_searchabletext': 1,
149        },
150    },
151}
152###)
153
154jamb_schema = { ###(
155    'reg_nr': {
156        'type': 'CPS String Field',
157        'data': {
158            'default_expr': 'string:',
159            'is_searchabletext': True,
160        },
161    },
162    'admission_sc_id': {
163        'type': 'CPS String Field',
164        'data': {
165            'is_searchabletext': True,
166        },
167    },
168    'admission_sc_pin': {
169        'type': 'CPS String Field',
170        'data': {
171            'is_searchabletext': True,
172        },
173    },
174    'admission_sc_pin_usage': {
175        'type': 'CPS Int Field',
176        'data': {
177            'default_expr': 'python:0',
178            'is_searchabletext': False,
179            },
180    },
181     'firstname': {
182        'type': 'CPS String Field',
183        'data': {
184            'is_searchabletext': 1,
185        },
186    },
187    'middlename': {
188        'type': 'CPS String Field',
189        'data': {
190            'is_searchabletext': 1,
191        },
192    },
193     'lastname': {
194        'type': 'CPS String Field',
195        'data': {
196            'is_searchabletext': 1,
197        },
198    },
199    'age': {
200        'type': 'CPS Int Field',
201        'data': {
202            'default_expr': 'python:20',
203            'is_searchabletext': False,
204        },
205    },
206    'sex': {
207        'type': 'CPS Boolean Field',
208        'data': {
209            'default_expr': 'python:0',
210            'is_searchabletext': False,
211        },
212    },
213    'state': {
214        'type': 'CPS String Field',
215        'data': {
216            'default_expr': 'string:',
217            'is_searchabletext': False,
218        },
219    },
220    'exam_results': {
221        'type': 'CPS String Field',
222        'data': {
223            'default_expr': 'string:',
224        },
225    },
226    'aggregate': {
227        'type': 'CPS String Field',
228        'data': {
229            'default_expr': 'string:',
230            'is_searchabletext': False,
231        },
232    },
233    'faculty': {
234        'type': 'CPS String Field',
235        'data': {
236            'default_expr': 'string:',
237            'is_searchabletext': False,
238        },
239    },
240    'course': {
241        'type': 'CPS String Field',
242        'data': {
243            'default_expr': 'string:',
244            'is_searchabletext': False,
245        },
246    },
247    'listing_date': {
248        'type': 'CPS DateTime Field',
249        'data': {
250            'is_searchabletext': False,
251        },
252    },
253##    '2nd_choice': { ###(
254##        'type': 'CPS String Field',
255##        'data': {
256##            'default_expr': 'string:',
257##            'is_searchabletext': False,
258##            'acl_read_permissions': '',
259##            'acl_read_roles': '',
260##            'acl_read_expr': '',
261##            'acl_write_permissions': '',
262##            'acl_write_roles': '',
263##            'acl_write_expr': '',
264##            'read_ignore_storage': False,
265##            'read_process_expr': '',
266##            'read_process_dependent_fields': (),
267##            'write_ignore_storage': False,
268##            'write_process_expr': '',
269##        },
270##    },
271##    '3rd_choice': {
272##        'type': 'CPS String Field',
273##        'data': {
274##            'default_expr': 'string:',
275##            'is_searchabletext': True,
276##            'acl_read_permissions': '',
277##            'acl_read_roles': '',
278##            'acl_read_expr': '',
279##            'acl_write_permissions': '',
280##            'acl_write_roles': '',
281##            'acl_write_expr': '',
282##            'read_ignore_storage': False,
283##            'read_process_expr': '',
284##            'read_process_dependent_fields': (),
285##            'write_ignore_storage': False,
286##            'write_process_expr': '',
287##        },
288##    },
289###)
290}
291
292
293###)
294
295faculty_schema = { ###(
296}###)
297
298department_schema = { ###(
299}###)
300
301course_schema = { ###(
302    'heading': {
303        'type': 'CPS String Field',
304        'data': {
305            'default_expr': 'string:',
306            'is_searchabletext': True,
307        },
308    },
309    'text': {
310        'type': 'CPS String Field',
311        'data': {
312            'default_expr': 'string:',
313            'is_searchabletext': True,
314        },
315    },
316    'level': {
317        'type': 'CPS String Field',
318        'data': {
319            'default_expr': 'string:',
320            'is_searchabletext': True,
321        },
322    },
323    'code': {
324        'type': 'CPS String Field',
325        'data': {
326            'default_expr': 'string:',
327            'is_searchabletext': True,
328        },
329    },
330    'semester': {
331        'type': 'CPS Boolean Field',
332        'data': {
333            'default_expr': 'python:True',
334            'is_searchabletext': False,
335        },
336    },
337    'credit': {
338        'type': 'CPS Int Field',
339        'data': {
340            'default_expr': 'string:',
341            'is_searchabletext': False,
342        },
343    },
344    'core_elective': {
345        'type': 'CPS Boolean Field',
346        'data': {
347            'default_expr': 'python:True',
348            'is_searchabletext': False,
349        },
350    },
351}###)
352
353accommodation = { ###(
354    'heading': {
355        'type': 'CPS String Field',
356        'data': {
357            'is_searchabletext': True,
358        },
359    },
360    'text': {
361        'type': 'CPS String Field',
362        'data': {
363            'is_searchabletext': True,
364        },
365    },
366    'which_sex': {
367        'type': 'CPS Boolean Field',
368        'data': {
369            'is_searchabletext': True,
370        },
371    },
372    'nr_of_blocks': {
373        'type': 'CPS Int Field',
374        'data': {
375            'is_searchabletext': False,
376        },
377    },
378    'nr_of_floors': {
379        'type': 'CPS Int Field',
380        'data': {
381            'is_searchabletext': False,
382        },
383    },
384    'rooms_per_floor': {
385        'type': 'CPS Int Field',
386        'data': {
387            'is_searchabletext': False,
388        },
389    },
390    'beds_per_room': {
391        'type': 'CPS Int Field',
392        'data': {
393            'is_searchabletext': False,
394        },
395    },
396    'beds_assigned': {
397        'type': 'CPS Int Field',
398        'data': {
399            'is_searchabletext': False,
400        },
401    },
402    'beds_assigned_list': {
403        'type': 'CPS String List Field',
404        'data': {
405            'is_searchabletext': False,
406        },
407    },
408}###)
409
410##scratch_card = { ###(
411####   'allow_discussion': {
412####        'type': 'CPS Int Field',
413####        'data': {
414####            'default_expr': 'python:0',
415####            'is_searchabletext': 0,
416####            },
417####        },
418##     'sc_id': {
419##        'type': 'CPS String Field',
420##        'data': {
421##            'default_expr': '',
422##            'is_searchabletext': 0,
423##            'acl_read_permissions': '',
424##            'acl_read_roles': '',
425##            'acl_read_expr': '',
426##            'acl_write_permissions': '',
427##            'acl_write_roles': '',
428##            'acl_write_expr': '',
429##            'read_ignore_storage': False,
430##            'read_process_expr': '',
431##            'read_process_dependent_fields': (),
432##            'write_ignore_storage': False,
433##            'write_process_expr': '',
434##        },
435##    },
436##     'sc_pin': {
437##        'type': 'CPS String Field',
438##        'data': {
439##            'default_expr': '',
440##            'is_searchabletext': 0,
441##            'acl_read_permissions': '',
442##            'acl_read_roles': '',
443##            'acl_read_expr': '',
444##            'acl_write_permissions': '',
445##            'acl_write_roles': '',
446##            'acl_write_expr': '',
447##            'read_ignore_storage': False,
448##            'read_process_expr': '',
449##            'read_process_dependent_fields': (),
450##            'write_ignore_storage': False,
451##            'write_process_expr': '',
452##        },
453##    },
454##}
455schemas = {}
456###)
457
458schemas['university'] = university_schema
459schemas['students'] = students_folder_schema
460schemas['student'] = student_schema
461schemas['student_personal'] = student_personal_schema
462schemas['accommodation'] = accommodation
463schemas['jamb'] = jamb_schema
464#schemas['scratch_card'] = scratch_card
465schemas['faculty'] = faculty_schema
466schemas['department'] = department_schema
467schemas['course'] = course_schema
468
469return schemas
Note: See TracBrowser for help on using the repository browser.