1 | #-*- mode: python; mode: fold -*- |
---|
2 | # $Id: getWAeUPSchemas.py 164 2005-11-10 21:40:01Z joachim $ |
---|
3 | |
---|
4 | sc_id = { ###( |
---|
5 | 'type': 'CPS String Field', |
---|
6 | 'data': { |
---|
7 | 'default_expr': 'string:', |
---|
8 | 'is_searchabletext': True, |
---|
9 | 'acl_read_permissions': '', |
---|
10 | 'acl_read_roles': '', |
---|
11 | 'acl_read_expr': '', |
---|
12 | 'acl_write_permissions': '', |
---|
13 | 'acl_write_roles': 'SectionReader', |
---|
14 | 'acl_write_expr': '', |
---|
15 | 'read_ignore_storage': False, |
---|
16 | 'read_process_expr': '', |
---|
17 | 'read_process_dependent_fields': (), |
---|
18 | 'write_ignore_storage': False, |
---|
19 | 'write_process_expr': '', |
---|
20 | }, |
---|
21 | } |
---|
22 | ###) |
---|
23 | |
---|
24 | sc_pin = { ###( |
---|
25 | 'type': 'CPS String Field', |
---|
26 | 'data': { |
---|
27 | 'default_expr': 'string:', |
---|
28 | 'is_searchabletext': True, |
---|
29 | 'acl_read_permissions': '', |
---|
30 | 'acl_read_roles': '', |
---|
31 | 'acl_read_expr': '', |
---|
32 | 'acl_write_permissions': '', |
---|
33 | 'acl_write_roles': 'SectionReader', |
---|
34 | 'acl_write_expr': '', |
---|
35 | 'read_ignore_storage': False, |
---|
36 | 'read_process_expr': '', |
---|
37 | 'read_process_dependent_fields': (), |
---|
38 | 'write_ignore_storage': False, |
---|
39 | 'write_process_expr': '', |
---|
40 | }, |
---|
41 | } |
---|
42 | |
---|
43 | ###) |
---|
44 | |
---|
45 | sc_value = { ###( |
---|
46 | 'type': 'CPS Float Field', |
---|
47 | 'data': { |
---|
48 | 'default_expr': 'python:500.', |
---|
49 | 'is_searchabletext': True, |
---|
50 | 'acl_read_permissions': '', |
---|
51 | 'acl_read_roles': '', |
---|
52 | 'acl_read_expr': '', |
---|
53 | 'acl_write_permissions': '', |
---|
54 | 'acl_write_roles': '', |
---|
55 | 'acl_write_expr': '', |
---|
56 | 'read_ignore_storage': False, |
---|
57 | 'read_process_expr': '', |
---|
58 | 'read_process_dependent_fields': (), |
---|
59 | 'write_ignore_storage': False, |
---|
60 | 'write_process_expr': '', |
---|
61 | }, |
---|
62 | } |
---|
63 | ###) |
---|
64 | |
---|
65 | university_schema = { ###( |
---|
66 | } |
---|
67 | ###) |
---|
68 | |
---|
69 | students_folder_schema = { ###( |
---|
70 | } |
---|
71 | ###) |
---|
72 | |
---|
73 | academics_folder_schema = { ###( |
---|
74 | } |
---|
75 | ###) |
---|
76 | |
---|
77 | student_schema = { ###( |
---|
78 | 'jamb_is_admitted': { |
---|
79 | 'type': 'CPS Boolean Field', |
---|
80 | 'data': { |
---|
81 | 'default_expr': 'python:False', |
---|
82 | 'is_searchabletext': 0, |
---|
83 | 'acl_read_permissions': '', |
---|
84 | 'acl_read_roles': '', |
---|
85 | 'acl_read_expr': '', |
---|
86 | 'acl_write_permissions': '', |
---|
87 | 'acl_write_roles': '', |
---|
88 | 'acl_write_expr': '', |
---|
89 | 'read_ignore_storage': False, |
---|
90 | 'read_process_expr': '', |
---|
91 | 'read_process_dependent_fields': (), |
---|
92 | 'write_ignore_storage': False, |
---|
93 | 'write_process_expr': '', |
---|
94 | }, |
---|
95 | }, |
---|
96 | 'faculty': { |
---|
97 | 'type': 'CPS String Field', |
---|
98 | 'data': { |
---|
99 | 'default_expr': 'string:', |
---|
100 | 'is_searchabletext': True, |
---|
101 | 'acl_read_permissions': '', |
---|
102 | 'acl_read_roles': '', |
---|
103 | 'acl_read_expr': '', |
---|
104 | 'acl_write_permissions': '', |
---|
105 | 'acl_write_roles': '', |
---|
106 | 'acl_write_expr': '', |
---|
107 | 'read_ignore_storage': False, |
---|
108 | 'read_process_expr': '', |
---|
109 | 'read_process_dependent_fields': (), |
---|
110 | 'write_ignore_storage': False, |
---|
111 | 'write_process_expr': '', |
---|
112 | }, |
---|
113 | }, |
---|
114 | 'course': { |
---|
115 | 'type': 'CPS String Field', |
---|
116 | 'data': { |
---|
117 | 'default_expr': 'string:', |
---|
118 | 'is_searchabletext': True, |
---|
119 | 'acl_read_permissions': '', |
---|
120 | 'acl_read_roles': '', |
---|
121 | 'acl_read_expr': '', |
---|
122 | 'acl_write_permissions': '', |
---|
123 | 'acl_write_roles': '', |
---|
124 | 'acl_write_expr': '', |
---|
125 | 'read_ignore_storage': False, |
---|
126 | 'read_process_expr': '', |
---|
127 | 'read_process_dependent_fields': (), |
---|
128 | 'write_ignore_storage': False, |
---|
129 | 'write_process_expr': '', |
---|
130 | }, |
---|
131 | }, |
---|
132 | 'adm_check_sc_id' : sc_id, |
---|
133 | 'adm_check_sc_pin' : sc_pin, |
---|
134 | 'adm_check_sc_value' : sc_value, |
---|
135 | 'adm_check_date' : { |
---|
136 | 'type': 'CPS DateTime Field', |
---|
137 | 'data': { |
---|
138 | 'is_searchabletext': 0, |
---|
139 | 'acl_write_roles': 'SectionReader', |
---|
140 | }, |
---|
141 | }, |
---|
142 | 'clearence_sc_id' : sc_id, |
---|
143 | 'clearence_sc_pin' : sc_pin, |
---|
144 | 'clearence_sc_value' : sc_value, |
---|
145 | 'clearence_date' : { |
---|
146 | 'type': 'CPS DateTime Field', |
---|
147 | 'data': { |
---|
148 | 'is_searchabletext': 0, |
---|
149 | 'acl_write_roles': 'SectionReader', |
---|
150 | }, |
---|
151 | }, |
---|
152 | 'accommodation_sc_id' : sc_id, |
---|
153 | 'accommodation_sc_pin' : sc_pin, |
---|
154 | 'accommodation_sc_value' : sc_value, |
---|
155 | 'accommodation_date' : { |
---|
156 | 'type': 'CPS DateTime Field', |
---|
157 | 'data': { |
---|
158 | 'is_searchabletext': 0, |
---|
159 | 'acl_write_roles': 'SectionReader', |
---|
160 | }, |
---|
161 | }, |
---|
162 | } |
---|
163 | ###) |
---|
164 | |
---|
165 | student_accommodation = { ###( |
---|
166 | 'sc_id': sc_id, |
---|
167 | 'sc_pin': sc_pin, |
---|
168 | 'sc_value': { ###( |
---|
169 | 'type': 'CPS Float Field', |
---|
170 | 'data': { |
---|
171 | 'default_expr': 'python:500.', |
---|
172 | 'is_searchabletext': True, |
---|
173 | 'acl_read_permissions': '', |
---|
174 | 'acl_read_roles': '', |
---|
175 | 'acl_read_expr': '', |
---|
176 | 'acl_write_permissions': '', |
---|
177 | 'acl_write_roles': '', |
---|
178 | 'acl_write_expr': '', |
---|
179 | 'read_ignore_storage': False, |
---|
180 | 'read_process_expr': '', |
---|
181 | 'read_process_dependent_fields': (), |
---|
182 | 'write_ignore_storage': False, |
---|
183 | 'write_process_expr': '', |
---|
184 | }, |
---|
185 | },###) |
---|
186 | 'accommodation': { |
---|
187 | 'type': 'CPS String Field', |
---|
188 | 'data': { |
---|
189 | 'default_expr': 'string:', |
---|
190 | 'is_searchabletext': True, |
---|
191 | 'acl_read_permissions': '', |
---|
192 | 'acl_read_roles': '', |
---|
193 | 'acl_read_expr': '', |
---|
194 | 'acl_write_permissions': '', |
---|
195 | 'acl_write_roles': '', |
---|
196 | 'acl_write_expr': '', |
---|
197 | 'read_ignore_storage': False, |
---|
198 | 'read_process_expr': '', |
---|
199 | 'read_process_dependent_fields': (), |
---|
200 | 'write_ignore_storage': False, |
---|
201 | 'write_process_expr': '', |
---|
202 | }, |
---|
203 | }, |
---|
204 | } |
---|
205 | ###) |
---|
206 | |
---|
207 | student_admission = { ###( |
---|
208 | 'sc_id': sc_id, |
---|
209 | 'sc_pin': sc_pin, |
---|
210 | 'sc_value': { ###( |
---|
211 | 'type': 'CPS Float Field', |
---|
212 | 'data': { |
---|
213 | 'default_expr': 'python:300.', |
---|
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 | 'reg_nr': { |
---|
229 | 'type': 'CPS String Field', |
---|
230 | 'data': { |
---|
231 | 'default_expr': 'string:', |
---|
232 | 'is_searchabletext': True, |
---|
233 | }, |
---|
234 | }, |
---|
235 | } |
---|
236 | ###) |
---|
237 | |
---|
238 | student_clearence = { ###( |
---|
239 | 'sc_id': sc_id, |
---|
240 | 'sc_pin': sc_pin, |
---|
241 | 'sc_value': { ###( |
---|
242 | 'type': 'CPS Float Field', |
---|
243 | 'data': { |
---|
244 | 'default_expr': 'python:800.', |
---|
245 | 'is_searchabletext': True, |
---|
246 | 'acl_read_permissions': '', |
---|
247 | 'acl_read_roles': '', |
---|
248 | 'acl_read_expr': '', |
---|
249 | 'acl_write_permissions': '', |
---|
250 | 'acl_write_roles': '', |
---|
251 | 'acl_write_expr': '', |
---|
252 | 'read_ignore_storage': False, |
---|
253 | 'read_process_expr': '', |
---|
254 | 'read_process_dependent_fields': (), |
---|
255 | 'write_ignore_storage': False, |
---|
256 | 'write_process_expr': '', |
---|
257 | }, |
---|
258 | },###) |
---|
259 | 'reg_nr': { |
---|
260 | 'type': 'CPS String Field', |
---|
261 | 'data': { |
---|
262 | 'default_expr': 'string:', |
---|
263 | 'is_searchabletext': True, |
---|
264 | }, |
---|
265 | }, |
---|
266 | 'lastname': { |
---|
267 | 'type': 'CPS String Field', |
---|
268 | 'data': { |
---|
269 | 'default_expr': 'string:', |
---|
270 | 'is_searchabletext': True, |
---|
271 | 'acl_read_permissions': '', |
---|
272 | 'acl_read_roles': '', |
---|
273 | 'acl_read_expr': '', |
---|
274 | 'acl_write_permissions': '', |
---|
275 | 'acl_write_roles': '', |
---|
276 | 'acl_write_expr': '', |
---|
277 | 'read_ignore_storage': False, |
---|
278 | 'read_process_expr': '', |
---|
279 | 'read_process_dependent_fields': (), |
---|
280 | 'write_ignore_storage': False, |
---|
281 | 'write_process_expr': '', |
---|
282 | }, |
---|
283 | }, |
---|
284 | }###) |
---|
285 | |
---|
286 | study_level = { ###( |
---|
287 | 'sc_id': sc_id, |
---|
288 | 'sc_pin': sc_pin, |
---|
289 | 'sc_value': { ###( |
---|
290 | 'type': 'CPS Float Field', |
---|
291 | 'data': { |
---|
292 | 'default_expr': 'python:1000.', |
---|
293 | 'is_searchabletext': True, |
---|
294 | 'acl_read_permissions': '', |
---|
295 | 'acl_read_roles': '', |
---|
296 | 'acl_read_expr': '', |
---|
297 | 'acl_write_permissions': '', |
---|
298 | 'acl_write_roles': '', |
---|
299 | 'acl_write_expr': '', |
---|
300 | 'read_ignore_storage': False, |
---|
301 | 'read_process_expr': '', |
---|
302 | 'read_process_dependent_fields': (), |
---|
303 | 'write_ignore_storage': False, |
---|
304 | 'write_process_expr': '', |
---|
305 | }, |
---|
306 | },###) |
---|
307 | } |
---|
308 | ###) |
---|
309 | |
---|
310 | student_personal_schema = { ###( |
---|
311 | 'firstname': { |
---|
312 | 'type': 'CPS String Field', |
---|
313 | 'data': { |
---|
314 | 'is_searchabletext': 1, |
---|
315 | }, |
---|
316 | }, |
---|
317 | 'middlename': { |
---|
318 | 'type': 'CPS String Field', |
---|
319 | 'data': { |
---|
320 | 'is_searchabletext': 1, |
---|
321 | }, |
---|
322 | }, |
---|
323 | 'lastname': { |
---|
324 | 'type': 'CPS String Field', |
---|
325 | 'data': { |
---|
326 | 'is_searchabletext': 1, |
---|
327 | }, |
---|
328 | }, |
---|
329 | 'sex': { |
---|
330 | 'type': 'CPS Boolean Field', |
---|
331 | 'default_expr': 'python:True', |
---|
332 | 'data': { |
---|
333 | 'is_searchabletext': 1, |
---|
334 | }, |
---|
335 | }, |
---|
336 | 'birthday': { |
---|
337 | 'type': 'CPS DateTime Field', |
---|
338 | 'data': { |
---|
339 | 'is_searchabletext': 1, |
---|
340 | }, |
---|
341 | }, |
---|
342 | 'age': { |
---|
343 | 'type': 'CPS DateTime Field', |
---|
344 | 'data': { |
---|
345 | 'is_searchabletext': 1, |
---|
346 | }, |
---|
347 | }, |
---|
348 | 'photo': { |
---|
349 | 'type': 'CPS Image Field', |
---|
350 | 'data': { |
---|
351 | 'is_searchabletext': 0, |
---|
352 | }, |
---|
353 | }, |
---|
354 | 'birth_certificate': { |
---|
355 | 'type': 'CPS Image Field', |
---|
356 | 'data': { |
---|
357 | 'is_searchabletext': 0, |
---|
358 | }, |
---|
359 | }, |
---|
360 | } |
---|
361 | ###) |
---|
362 | |
---|
363 | student_eligibility = { ###( |
---|
364 | 'firstname': { |
---|
365 | 'type': 'CPS String Field', |
---|
366 | 'data': { |
---|
367 | 'is_searchabletext': 1, |
---|
368 | }, |
---|
369 | }, |
---|
370 | 'middlename': { |
---|
371 | 'type': 'CPS String Field', |
---|
372 | 'data': { |
---|
373 | 'is_searchabletext': 1, |
---|
374 | }, |
---|
375 | }, |
---|
376 | 'lastname': { |
---|
377 | 'type': 'CPS String Field', |
---|
378 | 'data': { |
---|
379 | 'is_searchabletext': 1, |
---|
380 | }, |
---|
381 | }, |
---|
382 | 'sex': { |
---|
383 | 'type': 'CPS Boolean Field', |
---|
384 | 'default_expr': 'python:True', |
---|
385 | 'data': { |
---|
386 | 'is_searchabletext': 0, |
---|
387 | }, |
---|
388 | }, |
---|
389 | ## 'birthday': { |
---|
390 | ## 'type': 'CPS DateTime Field', |
---|
391 | ## 'data': { |
---|
392 | ## 'is_searchabletext': 1, |
---|
393 | ## }, |
---|
394 | ## }, |
---|
395 | 'age': { |
---|
396 | 'type': 'CPS DateTime Field', |
---|
397 | 'data': { |
---|
398 | 'is_searchabletext': 0, |
---|
399 | }, |
---|
400 | }, |
---|
401 | 'email': { |
---|
402 | 'type': 'CPS String Field', |
---|
403 | 'data': { |
---|
404 | 'is_searchabletext': 1, |
---|
405 | }, |
---|
406 | }, |
---|
407 | 'pw': { |
---|
408 | 'type': 'CPS String Field', |
---|
409 | 'data': { |
---|
410 | 'default_expr': 'string:default', |
---|
411 | }, |
---|
412 | }, |
---|
413 | 'rpw': { |
---|
414 | 'type': 'CPS String Field', |
---|
415 | 'data': { |
---|
416 | 'default_expr': 'string:default', |
---|
417 | }, |
---|
418 | }, |
---|
419 | ## 'photo': { |
---|
420 | ## 'type': 'CPS Image Field', |
---|
421 | ## 'data': { |
---|
422 | ## 'is_searchabletext': 0, |
---|
423 | ## }, |
---|
424 | ## }, |
---|
425 | ## 'birth_certificate': { |
---|
426 | ## 'type': 'CPS Image Field', |
---|
427 | ## 'data': { |
---|
428 | ## 'is_searchabletext': 0, |
---|
429 | ## }, |
---|
430 | ## }, |
---|
431 | } |
---|
432 | ###) |
---|
433 | |
---|
434 | jamb_schema = { ###( |
---|
435 | 'reg_nr': { |
---|
436 | 'type': 'CPS String Field', |
---|
437 | 'data': { |
---|
438 | 'default_expr': 'string:', |
---|
439 | 'is_searchabletext': True, |
---|
440 | }, |
---|
441 | }, |
---|
442 | 'admission_sc_id': { |
---|
443 | 'type': 'CPS String Field', |
---|
444 | 'data': { |
---|
445 | 'is_searchabletext': True, |
---|
446 | }, |
---|
447 | }, |
---|
448 | 'admission_sc_pin': { |
---|
449 | 'type': 'CPS String Field', |
---|
450 | 'data': { |
---|
451 | 'is_searchabletext': True, |
---|
452 | }, |
---|
453 | }, |
---|
454 | 'admission_sc_pin_usage': { |
---|
455 | 'type': 'CPS Int Field', |
---|
456 | 'data': { |
---|
457 | 'default_expr': 'python:0', |
---|
458 | 'is_searchabletext': False, |
---|
459 | }, |
---|
460 | }, |
---|
461 | 'firstname': { |
---|
462 | 'type': 'CPS String Field', |
---|
463 | 'data': { |
---|
464 | 'is_searchabletext': 1, |
---|
465 | }, |
---|
466 | }, |
---|
467 | 'middlename': { |
---|
468 | 'type': 'CPS String Field', |
---|
469 | 'data': { |
---|
470 | 'is_searchabletext': 1, |
---|
471 | }, |
---|
472 | }, |
---|
473 | 'lastname': { |
---|
474 | 'type': 'CPS String Field', |
---|
475 | 'data': { |
---|
476 | 'is_searchabletext': 1, |
---|
477 | }, |
---|
478 | }, |
---|
479 | 'age': { |
---|
480 | 'type': 'CPS Int Field', |
---|
481 | 'data': { |
---|
482 | 'default_expr': 'python:20', |
---|
483 | 'is_searchabletext': False, |
---|
484 | }, |
---|
485 | }, |
---|
486 | 'sex': { |
---|
487 | 'type': 'CPS Boolean Field', |
---|
488 | 'data': { |
---|
489 | 'default_expr': 'python:0', |
---|
490 | 'is_searchabletext': False, |
---|
491 | }, |
---|
492 | }, |
---|
493 | 'state': { |
---|
494 | 'type': 'CPS String Field', |
---|
495 | 'data': { |
---|
496 | 'default_expr': 'string:', |
---|
497 | 'is_searchabletext': False, |
---|
498 | }, |
---|
499 | }, |
---|
500 | 'exam_results': { |
---|
501 | 'type': 'CPS String Field', |
---|
502 | 'data': { |
---|
503 | 'default_expr': 'string:', |
---|
504 | }, |
---|
505 | }, |
---|
506 | 'aggregate': { |
---|
507 | 'type': 'CPS String Field', |
---|
508 | 'data': { |
---|
509 | 'default_expr': 'string:', |
---|
510 | 'is_searchabletext': False, |
---|
511 | }, |
---|
512 | }, |
---|
513 | 'faculty': { |
---|
514 | 'type': 'CPS String Field', |
---|
515 | 'data': { |
---|
516 | 'default_expr': 'string:', |
---|
517 | 'is_searchabletext': False, |
---|
518 | }, |
---|
519 | }, |
---|
520 | 'course': { |
---|
521 | 'type': 'CPS String Field', |
---|
522 | 'data': { |
---|
523 | 'default_expr': 'string:', |
---|
524 | 'is_searchabletext': False, |
---|
525 | }, |
---|
526 | }, |
---|
527 | 'listing_date': { |
---|
528 | 'type': 'CPS DateTime Field', |
---|
529 | 'data': { |
---|
530 | 'is_searchabletext': False, |
---|
531 | }, |
---|
532 | }, |
---|
533 | ## '2nd_choice': { ###( |
---|
534 | ## 'type': 'CPS String Field', |
---|
535 | ## 'data': { |
---|
536 | ## 'default_expr': 'string:', |
---|
537 | ## 'is_searchabletext': False, |
---|
538 | ## 'acl_read_permissions': '', |
---|
539 | ## 'acl_read_roles': '', |
---|
540 | ## 'acl_read_expr': '', |
---|
541 | ## 'acl_write_permissions': '', |
---|
542 | ## 'acl_write_roles': '', |
---|
543 | ## 'acl_write_expr': '', |
---|
544 | ## 'read_ignore_storage': False, |
---|
545 | ## 'read_process_expr': '', |
---|
546 | ## 'read_process_dependent_fields': (), |
---|
547 | ## 'write_ignore_storage': False, |
---|
548 | ## 'write_process_expr': '', |
---|
549 | ## }, |
---|
550 | ## }, |
---|
551 | ## '3rd_choice': { |
---|
552 | ## 'type': 'CPS String Field', |
---|
553 | ## 'data': { |
---|
554 | ## 'default_expr': 'string:', |
---|
555 | ## 'is_searchabletext': True, |
---|
556 | ## 'acl_read_permissions': '', |
---|
557 | ## 'acl_read_roles': '', |
---|
558 | ## 'acl_read_expr': '', |
---|
559 | ## 'acl_write_permissions': '', |
---|
560 | ## 'acl_write_roles': '', |
---|
561 | ## 'acl_write_expr': '', |
---|
562 | ## 'read_ignore_storage': False, |
---|
563 | ## 'read_process_expr': '', |
---|
564 | ## 'read_process_dependent_fields': (), |
---|
565 | ## 'write_ignore_storage': False, |
---|
566 | ## 'write_process_expr': '', |
---|
567 | ## }, |
---|
568 | ## }, |
---|
569 | ###) |
---|
570 | } |
---|
571 | |
---|
572 | |
---|
573 | ###) |
---|
574 | |
---|
575 | course_results_schema = { ###( |
---|
576 | 'points': { |
---|
577 | 'type': 'CPS Int Field', |
---|
578 | 'data': { |
---|
579 | 'is_searchabletext': 0, |
---|
580 | }, |
---|
581 | }, |
---|
582 | 'grade': { |
---|
583 | 'type': 'CPS String Field', |
---|
584 | 'data': { |
---|
585 | 'is_searchabletext': 0, |
---|
586 | }, |
---|
587 | }, |
---|
588 | } |
---|
589 | # |
---|
590 | ###) |
---|
591 | |
---|
592 | faculty_schema = { ###( |
---|
593 | }###) |
---|
594 | |
---|
595 | department_schema = { ###( |
---|
596 | }###) |
---|
597 | |
---|
598 | course_schema = { ###( |
---|
599 | ## 'Title': { |
---|
600 | ## 'type': 'CPS String Field', |
---|
601 | ## 'data': { |
---|
602 | ## 'default_expr': '', |
---|
603 | ## 'is_searchabletext': True, |
---|
604 | ## }, |
---|
605 | ## }, |
---|
606 | 'heading': { |
---|
607 | 'type': 'CPS String Field', |
---|
608 | 'data': { |
---|
609 | 'is_searchabletext': True, |
---|
610 | }, |
---|
611 | }, |
---|
612 | 'text': { |
---|
613 | 'type': 'CPS String Field', |
---|
614 | 'data': { |
---|
615 | 'is_searchabletext': True, |
---|
616 | }, |
---|
617 | }, |
---|
618 | 'level': { |
---|
619 | 'type': 'CPS String Field', |
---|
620 | 'data': { |
---|
621 | 'default_expr': 'string:', |
---|
622 | 'is_searchabletext': True, |
---|
623 | }, |
---|
624 | }, |
---|
625 | 'code': { |
---|
626 | 'type': 'CPS String Field', |
---|
627 | 'data': { |
---|
628 | 'default_expr': 'string:', |
---|
629 | 'is_searchabletext': True, |
---|
630 | }, |
---|
631 | }, |
---|
632 | 'semester': { |
---|
633 | 'type': 'CPS Boolean Field', |
---|
634 | 'data': { |
---|
635 | 'default_expr': 'python:True', |
---|
636 | 'is_searchabletext': False, |
---|
637 | }, |
---|
638 | }, |
---|
639 | 'credit': { |
---|
640 | 'type': 'CPS Int Field', |
---|
641 | 'data': { |
---|
642 | 'default_expr': 'string:', |
---|
643 | 'is_searchabletext': False, |
---|
644 | }, |
---|
645 | }, |
---|
646 | 'core_elective': { |
---|
647 | 'type': 'CPS Boolean Field', |
---|
648 | 'data': { |
---|
649 | 'default_expr': 'python:True', |
---|
650 | 'is_searchabletext': False, |
---|
651 | }, |
---|
652 | }, |
---|
653 | }###) |
---|
654 | |
---|
655 | accommodation = { ###( |
---|
656 | 'heading': { |
---|
657 | 'type': 'CPS String Field', |
---|
658 | 'data': { |
---|
659 | 'is_searchabletext': True, |
---|
660 | }, |
---|
661 | }, |
---|
662 | 'text': { |
---|
663 | 'type': 'CPS String Field', |
---|
664 | 'data': { |
---|
665 | 'is_searchabletext': True, |
---|
666 | }, |
---|
667 | }, |
---|
668 | 'which_sex': { |
---|
669 | 'type': 'CPS Boolean Field', |
---|
670 | 'data': { |
---|
671 | 'is_searchabletext': True, |
---|
672 | }, |
---|
673 | }, |
---|
674 | 'nr_of_blocks': { |
---|
675 | 'type': 'CPS Int Field', |
---|
676 | 'data': { |
---|
677 | 'is_searchabletext': False, |
---|
678 | }, |
---|
679 | }, |
---|
680 | 'nr_of_floors': { |
---|
681 | 'type': 'CPS Int Field', |
---|
682 | 'data': { |
---|
683 | 'is_searchabletext': False, |
---|
684 | }, |
---|
685 | }, |
---|
686 | 'rooms_per_floor': { |
---|
687 | 'type': 'CPS Int Field', |
---|
688 | 'data': { |
---|
689 | 'is_searchabletext': False, |
---|
690 | }, |
---|
691 | }, |
---|
692 | 'beds_per_room': { |
---|
693 | 'type': 'CPS Int Field', |
---|
694 | 'data': { |
---|
695 | 'is_searchabletext': False, |
---|
696 | }, |
---|
697 | }, |
---|
698 | 'beds_assigned': { |
---|
699 | 'type': 'CPS Int Field', |
---|
700 | 'data': { |
---|
701 | 'is_searchabletext': False, |
---|
702 | }, |
---|
703 | }, |
---|
704 | 'beds_assigned_list': { |
---|
705 | 'type': 'CPS String List Field', |
---|
706 | 'data': { |
---|
707 | 'is_searchabletext': False, |
---|
708 | }, |
---|
709 | }, |
---|
710 | }###) |
---|
711 | |
---|
712 | ##scratch_card = { ###( |
---|
713 | #### 'allow_discussion': { |
---|
714 | #### 'type': 'CPS Int Field', |
---|
715 | #### 'data': { |
---|
716 | #### 'default_expr': 'python:0', |
---|
717 | #### 'is_searchabletext': 0, |
---|
718 | #### }, |
---|
719 | #### }, |
---|
720 | ## 'sc_id': { |
---|
721 | ## 'type': 'CPS String Field', |
---|
722 | ## 'data': { |
---|
723 | ## 'default_expr': '', |
---|
724 | ## 'is_searchabletext': 0, |
---|
725 | ## 'acl_read_permissions': '', |
---|
726 | ## 'acl_read_roles': '', |
---|
727 | ## 'acl_read_expr': '', |
---|
728 | ## 'acl_write_permissions': '', |
---|
729 | ## 'acl_write_roles': '', |
---|
730 | ## 'acl_write_expr': '', |
---|
731 | ## 'read_ignore_storage': False, |
---|
732 | ## 'read_process_expr': '', |
---|
733 | ## 'read_process_dependent_fields': (), |
---|
734 | ## 'write_ignore_storage': False, |
---|
735 | ## 'write_process_expr': '', |
---|
736 | ## }, |
---|
737 | ## }, |
---|
738 | ## 'sc_pin': { |
---|
739 | ## 'type': 'CPS String Field', |
---|
740 | ## 'data': { |
---|
741 | ## 'default_expr': '', |
---|
742 | ## 'is_searchabletext': 0, |
---|
743 | ## 'acl_read_permissions': '', |
---|
744 | ## 'acl_read_roles': '', |
---|
745 | ## 'acl_read_expr': '', |
---|
746 | ## 'acl_write_permissions': '', |
---|
747 | ## 'acl_write_roles': '', |
---|
748 | ## 'acl_write_expr': '', |
---|
749 | ## 'read_ignore_storage': False, |
---|
750 | ## 'read_process_expr': '', |
---|
751 | ## 'read_process_dependent_fields': (), |
---|
752 | ## 'write_ignore_storage': False, |
---|
753 | ## 'write_process_expr': '', |
---|
754 | ## }, |
---|
755 | ## }, |
---|
756 | ##} |
---|
757 | schemas = {} |
---|
758 | ###) |
---|
759 | |
---|
760 | schemas['university'] = university_schema |
---|
761 | schemas['academics'] = academics_folder_schema |
---|
762 | schemas['students'] = students_folder_schema |
---|
763 | schemas['student'] = student_schema |
---|
764 | schemas['student_admission'] = student_admission |
---|
765 | schemas['student_clearence'] = student_clearence |
---|
766 | schemas['student_eligibility'] = student_eligibility |
---|
767 | schemas['student_accommodation'] = student_accommodation |
---|
768 | schemas['study_level'] = study_level |
---|
769 | schemas['course_results'] = course_results_schema |
---|
770 | schemas['student_personal'] = student_personal_schema |
---|
771 | schemas['accommodation'] = accommodation |
---|
772 | schemas['jamb'] = jamb_schema |
---|
773 | #schemas['scratch_card'] = scratch_card |
---|
774 | schemas['faculty'] = faculty_schema |
---|
775 | schemas['department'] = department_schema |
---|
776 | schemas['course'] = course_schema |
---|
777 | |
---|
778 | return schemas |
---|