Ignore:
Timestamp:
10 Nov 2005, 21:40:01 (19 years ago)
Author:
joachim
Message:

=clearence + eligibility added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup_product/trunk/skins/waeup_default/getWAeUPSchemas.py

    r161 r164  
    11#-*- mode: python; mode: fold -*-
    22# $Id$
     3
     4sc_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
     24sc_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
     45sc_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###)
    364
    465university_schema = { ###(
     
    67128            'write_ignore_storage': False,
    68129            'write_process_expr': '',
    69         },
    70     },
    71     'accommodation_sc_id': {
    72         'type': 'CPS String Field',
    73         'data': {
    74             'default_expr': 'string:',
    75             'is_searchabletext': True,
    76             'acl_read_permissions': '',
    77             'acl_read_roles': '',
    78             'acl_read_expr': '',
    79             'acl_write_permissions': '',
    80             'acl_write_roles': '',
    81             'acl_write_expr': '',
    82             'read_ignore_storage': False,
    83             'read_process_expr': '',
    84             'read_process_dependent_fields': (),
    85             'write_ignore_storage': False,
    86             'write_process_expr': '',
    87         },
    88     },
    89     'accommodation_sc_pin': {
    90         'type': 'CPS String Field',
    91         'data': {
    92             'default_expr': 'string:',
    93             'is_searchabletext': True,
    94             'acl_read_permissions': '',
    95             'acl_read_roles': '',
    96             'acl_read_expr': '',
    97             'acl_write_permissions': '',
    98             'acl_write_roles': '',
    99             'acl_write_expr': '',
    100             'read_ignore_storage': False,
    101             'read_process_expr': '',
    102             'read_process_dependent_fields': (),
    103             'write_ignore_storage': False,
    104             'write_process_expr': '',
    105         },
    106     },
    107 }
    108 #
    109 ###)
    110 
    111 studylevel = { ###(
    112 }
    113 #
     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
     165student_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
     207student_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
     238student_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
     286study_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}
    114308###)
    115309
     
    164358        },
    165359    },
     360}
     361###)
     362
     363student_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##    },
    166431}
    167432###)
     
    497762schemas['students'] = students_folder_schema
    498763schemas['student'] = student_schema
    499 schemas['studylevel'] = studylevel
     764schemas['student_admission'] = student_admission
     765schemas['student_clearence'] = student_clearence
     766schemas['student_eligibility'] = student_eligibility
     767schemas['student_accommodation'] = student_accommodation
     768schemas['study_level'] = study_level
    500769schemas['course_results'] = course_results_schema
    501770schemas['student_personal'] = student_personal_schema
Note: See TracChangeset for help on using the changeset viewer.