Changeset 27 for waeup_product/trunk


Ignore:
Timestamp:
30 Sep 2005, 18:06:13 (19 years ago)
Author:
joachim
Message:

noch mehr

Location:
waeup_product/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • waeup_product/trunk/Workflows/WAeUPWorkflow.py

    r19 r27  
    6262    s = wf.states.get('work')
    6363
    64     s.setPermission(View, 1, ('Student',))
    65     s.setPermission(ModifyPortalContent, 1, ('StudentAdmin',))
     64    s.setPermission(View, 1, ('Students',))
     65    s.setPermission(ModifyPortalContent, 1, ('StudentManager',))
    6666
    6767    s.setInitialState('work')
  • waeup_product/trunk/skins/waeup_default/getWAeUPLayouts.py

    r25 r27  
    109109layouts['student'] = student_layout
    110110
    111 checkadmission = {
     111scratch_card = {
    112112    'widgets': {
    113         'reg_nr': {
    114             'type': 'StudentId Widget',
    115             'data': {
    116                 'title': 'Student ID',
    117                 'fields': ('reg_nr',),
     113        'sc_id': {
     114            'type': 'String Widget',
     115            'data': {
     116                'title': 'SC ID',
     117                'fields': ('sc_id',),
    118118                'is_required': True,
    119                 'label': 'Student ID',
    120                 'label_edit': 'Student ID',
     119                'label': 'Scratch card ID',
     120                'label_edit': 'Scratch card ID',
    121121                'description': '',
    122122                'help': '',
     
    157157    },
    158158   'layout': {
    159         'style_prefix': 'layout_admission_',
     159        'style_prefix': 'layout_default_',
    160160        'flexible_widgets': (),
    161161        'ncols': 1,
     
    167167}
    168168
    169 layouts['checkadmission'] = checkadmission
     169layouts['scratch_card'] = scratch_card
    170170
    171171jamb_layout = {
  • waeup_product/trunk/skins/waeup_default/getWAeUPSchemas.py

    r25 r27  
    302302schemas['student'] = student_schema
    303303schemas['jamb'] = jamb_schema
    304 schemas['scratchcard'] = scratch_card
     304schemas['scratch_card'] = scratch_card
    305305
    306306return schemas
  • waeup_product/trunk/skins/waeup_default/getWAeUPTypes.py

    r25 r27  
    1818    'global_allow': 1,
    1919    'filter_content_types': 1,
    20     'allowed_content_types': ('Student','ScratchCard'),
     20    'allowed_content_types': ('Student'),
     21    #'allowed_content_types': ('Student','ScratchCard'),
    2122    'allow_discussion': 0,
    2223    'cps_is_searchable': 1,
     
    2425    'cps_proxy_type': 'folder',
    2526    'schemas': ['metadata', 'common', 'folder'],
    26     'layouts': ['common', 'folder'],
     27    'layouts': ['folder'],
    2728    'layout_clusters': ['metadata:metadata'],
    2829    'cps_section_wf': 'waeup_section_wf',
     
    7071    'cps_display_as_document_in_listing': True,
    7172    'schemas': ('metadata', 'student'),
    72     'layouts': ('common', 'student'),
     73    'layouts': ('student'),
    7374    'cps_workspace_wf': 'waeup_workspace_wf',
    7475    'cps_section_wf': 'waeup_section_wf',
     
    119120    'cps_proxy_type': 'document',
    120121    'cps_display_as_document_in_listing': True,
    121     'schemas': ('metadata', 'scratch_card'),
    122     'layouts': ('common', 'scratch_card'),
     122    'schemas': ('scratch_card'),
     123    'layouts': ('scratch_card'),
    123124    'cps_workspace_wf': 'waeup_workspace_wf',
    124125    'cps_section_wf': 'waeup_section_wf',
Note: See TracChangeset for help on using the changeset viewer.