#-*- mode: python; mode: fold -*- # $Id: getWAeUPSchemas.py 142 2005-11-02 18:04:59Z joachim $ university_schema = { ###( } ###) students_folder_schema = { ###( } ###) academics_folder_schema = { ###( } ###) student_schema = { ###( 'jamb_is_admitted': { 'type': 'CPS Boolean Field', 'data': { 'default_expr': 'python:False', 'is_searchabletext': 0, 'acl_read_permissions': '', 'acl_read_roles': '', 'acl_read_expr': '', 'acl_write_permissions': '', 'acl_write_roles': '', 'acl_write_expr': '', 'read_ignore_storage': False, 'read_process_expr': '', 'read_process_dependent_fields': (), 'write_ignore_storage': False, 'write_process_expr': '', }, }, 'faculty': { 'type': 'CPS String Field', 'data': { 'default_expr': 'string:', 'is_searchabletext': True, 'acl_read_permissions': '', 'acl_read_roles': '', 'acl_read_expr': '', 'acl_write_permissions': '', 'acl_write_roles': '', 'acl_write_expr': '', 'read_ignore_storage': False, 'read_process_expr': '', 'read_process_dependent_fields': (), 'write_ignore_storage': False, 'write_process_expr': '', }, }, 'course': { 'type': 'CPS String Field', 'data': { 'default_expr': 'string:', 'is_searchabletext': True, 'acl_read_permissions': '', 'acl_read_roles': '', 'acl_read_expr': '', 'acl_write_permissions': '', 'acl_write_roles': '', 'acl_write_expr': '', 'read_ignore_storage': False, 'read_process_expr': '', 'read_process_dependent_fields': (), 'write_ignore_storage': False, 'write_process_expr': '', }, }, 'accommodation_sc_id': { 'type': 'CPS String Field', 'data': { 'default_expr': 'string:', 'is_searchabletext': True, 'acl_read_permissions': '', 'acl_read_roles': '', 'acl_read_expr': '', 'acl_write_permissions': '', 'acl_write_roles': '', 'acl_write_expr': '', 'read_ignore_storage': False, 'read_process_expr': '', 'read_process_dependent_fields': (), 'write_ignore_storage': False, 'write_process_expr': '', }, }, 'accommodation_sc_pin': { 'type': 'CPS String Field', 'data': { 'default_expr': 'string:', 'is_searchabletext': True, 'acl_read_permissions': '', 'acl_read_roles': '', 'acl_read_expr': '', 'acl_write_permissions': '', 'acl_write_roles': '', 'acl_write_expr': '', 'read_ignore_storage': False, 'read_process_expr': '', 'read_process_dependent_fields': (), 'write_ignore_storage': False, 'write_process_expr': '', }, }, } # ###) student_personal_schema = { ###( 'firstname': { 'type': 'CPS String Field', 'data': { 'is_searchabletext': 1, }, }, 'middlename': { 'type': 'CPS String Field', 'data': { 'is_searchabletext': 1, }, }, 'lastname': { 'type': 'CPS String Field', 'data': { 'is_searchabletext': 1, }, }, 'sex': { 'type': 'CPS Boolean Field', 'default_expr': 'python:True', 'data': { 'is_searchabletext': 1, }, }, 'birthday': { 'type': 'CPS DateTime Field', 'data': { 'is_searchabletext': 1, }, }, 'age': { 'type': 'CPS DateTime Field', 'data': { 'is_searchabletext': 1, }, }, 'state': { 'type': 'CPS DateTime Field', 'data': { 'is_searchabletext': 1, }, }, } ###) jamb_schema = { ###( 'reg_nr': { 'type': 'CPS String Field', 'data': { 'default_expr': 'string:', 'is_searchabletext': True, }, }, 'admission_sc_id': { 'type': 'CPS String Field', 'data': { 'is_searchabletext': True, }, }, 'admission_sc_pin': { 'type': 'CPS String Field', 'data': { 'is_searchabletext': True, }, }, 'admission_sc_pin_usage': { 'type': 'CPS Int Field', 'data': { 'default_expr': 'python:0', 'is_searchabletext': False, }, }, 'firstname': { 'type': 'CPS String Field', 'data': { 'is_searchabletext': 1, }, }, 'middlename': { 'type': 'CPS String Field', 'data': { 'is_searchabletext': 1, }, }, 'lastname': { 'type': 'CPS String Field', 'data': { 'is_searchabletext': 1, }, }, 'age': { 'type': 'CPS Int Field', 'data': { 'default_expr': 'python:20', 'is_searchabletext': False, }, }, 'sex': { 'type': 'CPS Boolean Field', 'data': { 'default_expr': 'python:0', 'is_searchabletext': False, }, }, 'state': { 'type': 'CPS String Field', 'data': { 'default_expr': 'string:', 'is_searchabletext': False, }, }, 'exam_results': { 'type': 'CPS String Field', 'data': { 'default_expr': 'string:', }, }, 'aggregate': { 'type': 'CPS String Field', 'data': { 'default_expr': 'string:', 'is_searchabletext': False, }, }, 'faculty': { 'type': 'CPS String Field', 'data': { 'default_expr': 'string:', 'is_searchabletext': False, }, }, 'course': { 'type': 'CPS String Field', 'data': { 'default_expr': 'string:', 'is_searchabletext': False, }, }, 'listing_date': { 'type': 'CPS DateTime Field', 'data': { 'is_searchabletext': False, }, }, ## '2nd_choice': { ###( ## 'type': 'CPS String Field', ## 'data': { ## 'default_expr': 'string:', ## 'is_searchabletext': False, ## 'acl_read_permissions': '', ## 'acl_read_roles': '', ## 'acl_read_expr': '', ## 'acl_write_permissions': '', ## 'acl_write_roles': '', ## 'acl_write_expr': '', ## 'read_ignore_storage': False, ## 'read_process_expr': '', ## 'read_process_dependent_fields': (), ## 'write_ignore_storage': False, ## 'write_process_expr': '', ## }, ## }, ## '3rd_choice': { ## 'type': 'CPS String Field', ## 'data': { ## 'default_expr': 'string:', ## 'is_searchabletext': True, ## 'acl_read_permissions': '', ## 'acl_read_roles': '', ## 'acl_read_expr': '', ## 'acl_write_permissions': '', ## 'acl_write_roles': '', ## 'acl_write_expr': '', ## 'read_ignore_storage': False, ## 'read_process_expr': '', ## 'read_process_dependent_fields': (), ## 'write_ignore_storage': False, ## 'write_process_expr': '', ## }, ## }, ###) } ###) course_results_schema = { ###( 'points': { 'type': 'CPS Int Field', 'data': { 'is_searchabletext': 0, }, }, 'grade': { 'type': 'CPS String Field', 'data': { 'is_searchabletext': 0, }, }, } # ###) faculty_schema = { ###( }###) department_schema = { ###( }###) course_schema = { ###( 'Title': { 'type': 'CPS String Field', 'data': { 'default_expr': '', 'is_searchabletext': True, }, }, 'heading': { 'type': 'CPS String Field', 'data': { 'default_expr': '', 'is_searchabletext': True, }, }, 'text': { 'type': 'CPS String Field', 'data': { 'default_expr': 'string:', 'is_searchabletext': True, }, }, 'level': { 'type': 'CPS String Field', 'data': { 'default_expr': 'string:', 'is_searchabletext': True, }, }, 'code': { 'type': 'CPS String Field', 'data': { 'default_expr': 'string:', 'is_searchabletext': True, }, }, 'semester': { 'type': 'CPS Boolean Field', 'data': { 'default_expr': 'python:True', 'is_searchabletext': False, }, }, 'credit': { 'type': 'CPS Int Field', 'data': { 'default_expr': 'string:', 'is_searchabletext': False, }, }, 'core_elective': { 'type': 'CPS Boolean Field', 'data': { 'default_expr': 'python:True', 'is_searchabletext': False, }, }, }###) accommodation = { ###( 'heading': { 'type': 'CPS String Field', 'data': { 'is_searchabletext': True, }, }, 'Title': { 'type': 'CPS String Field', 'data': { 'is_searchabletext': True, }, }, 'text': { 'type': 'CPS String Field', 'data': { 'is_searchabletext': True, }, }, 'which_sex': { 'type': 'CPS Boolean Field', 'data': { 'is_searchabletext': True, }, }, 'nr_of_blocks': { 'type': 'CPS Int Field', 'data': { 'is_searchabletext': False, }, }, 'nr_of_floors': { 'type': 'CPS Int Field', 'data': { 'is_searchabletext': False, }, }, 'rooms_per_floor': { 'type': 'CPS Int Field', 'data': { 'is_searchabletext': False, }, }, 'beds_per_room': { 'type': 'CPS Int Field', 'data': { 'is_searchabletext': False, }, }, 'beds_assigned': { 'type': 'CPS Int Field', 'data': { 'is_searchabletext': False, }, }, 'beds_assigned_list': { 'type': 'CPS String List Field', 'data': { 'is_searchabletext': False, }, }, }###) ##scratch_card = { ###( #### 'allow_discussion': { #### 'type': 'CPS Int Field', #### 'data': { #### 'default_expr': 'python:0', #### 'is_searchabletext': 0, #### }, #### }, ## 'sc_id': { ## 'type': 'CPS String Field', ## 'data': { ## 'default_expr': '', ## 'is_searchabletext': 0, ## 'acl_read_permissions': '', ## 'acl_read_roles': '', ## 'acl_read_expr': '', ## 'acl_write_permissions': '', ## 'acl_write_roles': '', ## 'acl_write_expr': '', ## 'read_ignore_storage': False, ## 'read_process_expr': '', ## 'read_process_dependent_fields': (), ## 'write_ignore_storage': False, ## 'write_process_expr': '', ## }, ## }, ## 'sc_pin': { ## 'type': 'CPS String Field', ## 'data': { ## 'default_expr': '', ## 'is_searchabletext': 0, ## 'acl_read_permissions': '', ## 'acl_read_roles': '', ## 'acl_read_expr': '', ## 'acl_write_permissions': '', ## 'acl_write_roles': '', ## 'acl_write_expr': '', ## 'read_ignore_storage': False, ## 'read_process_expr': '', ## 'read_process_dependent_fields': (), ## 'write_ignore_storage': False, ## 'write_process_expr': '', ## }, ## }, ##} schemas = {} ###) schemas['university'] = university_schema schemas['academics'] = academics_folder_schema schemas['students'] = students_folder_schema schemas['student'] = student_schema schemas['course_results'] = course_results_schema schemas['student_personal'] = student_personal_schema schemas['accommodation'] = accommodation schemas['jamb'] = jamb_schema #schemas['scratch_card'] = scratch_card schemas['faculty'] = faculty_schema schemas['department'] = department_schema schemas['course'] = course_schema return schemas