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

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

=more

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