Ignore:
Timestamp:
30 Sep 2005, 16:19:00 (19 years ago)
Author:
joachim
Message:

noch mehr

Location:
waeup_product/trunk/skins/waeup_default
Files:
3 edited

Legend:

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

    r20 r25  
    3636                'label': 'University',
    3737                'label_edit': 'University',
     38                'description': '',
     39                'help': '',
     40                'is_i18n': False,
     41                'readonly_layout_modes': (),
     42                'hidden_layout_modes': (),
     43                'hidden_readonly_layout_modes': (),
     44                'hidden_empty': False,
     45                'hidden_if_expr': '',
     46                'css_class': '',
     47                'widget_mode_expr': '',
     48                'display_width': 10,
     49                'size_max': 0,
     50            },
     51        },
     52        'jamb_pin_usage': {
     53            'type': 'Int Widget',
     54            'data': {
     55                'title': 'Jamb Pin usage',
     56                'fields': ('jamb_pin_usage',),
     57                'is_required': False,
     58                'label': 'Nr of tries',
     59                'label_edit': 'Nr of tries',
    3860                'description': '',
    3961                'help': '',
     
    80102            [{'widget_id': 'jamb_is_admitted', 'ncols': 1},],
    81103            [{'widget_id': 'jamb_where_admitted', 'ncols': 1},],
     104            [{'widget_id': 'jamb_pin_usage', 'ncols': 1},],
    82105            [{'widget_id': 'faculty', 'ncols': 1},],
    83106        ]
     
    114137            'data': {
    115138                'title': 'SC Pin',
    116                 'fields': (),
     139                'fields': ('sc_pin'),
    117140                'is_required': True,
    118141                'label': 'Scratchcard Pin',
  • waeup_product/trunk/skins/waeup_default/getWAeUPSchemas.py

    r20 r25  
    253253    },
    254254}
     255
     256scratch_card = {
     257   'allow_discussion': {
     258        'type': 'CPS Int Field',
     259        'data': {
     260            'default_expr': 'python:0',
     261            'is_searchabletext': 0,
     262            },
     263        },
     264     'sc_id': {
     265        'type': 'CPS String Field',
     266        'data': {
     267            'default_expr': '',
     268            'is_searchabletext': 0,
     269            'acl_read_permissions': '',
     270            'acl_read_roles': '',
     271            'acl_read_expr': '',
     272            'acl_write_permissions': '',
     273            'acl_write_roles': '',
     274            'acl_write_expr': '',
     275            'read_ignore_storage': False,
     276            'read_process_expr': '',
     277            'read_process_dependent_fields': (),
     278            'write_ignore_storage': False,
     279            'write_process_expr': '',
     280        },
     281    },
     282     'sc_pin': {
     283        'type': 'CPS String Field',
     284        'data': {
     285            'default_expr': '',
     286            'is_searchabletext': 0,
     287            'acl_read_permissions': '',
     288            'acl_read_roles': '',
     289            'acl_read_expr': '',
     290            'acl_write_permissions': '',
     291            'acl_write_roles': '',
     292            'acl_write_expr': '',
     293            'read_ignore_storage': False,
     294            'read_process_expr': '',
     295            'read_process_dependent_fields': (),
     296            'write_ignore_storage': False,
     297            'write_process_expr': '',
     298        },
     299    },
     300}
    255301schemas = {}
    256302schemas['student'] = student_schema
    257303schemas['jamb'] = jamb_schema
     304schemas['scratchcard'] = scratch_card
    258305
    259306return schemas
  • waeup_product/trunk/skins/waeup_default/getWAeUPTypes.py

    r20 r25  
    1818    'global_allow': 1,
    1919    'filter_content_types': 1,
    20     'allowed_content_types': ('Student',),
     20    'allowed_content_types': ('Student','ScratchCard'),
    2121    'allow_discussion': 0,
    2222    'cps_is_searchable': 1,
     
    104104    )
    105105}
     106scratch_card = {
     107    'title': 'WAeUP Scratchcard',
     108    'description': '',
     109    'content_icon': 'student.gif',
     110    'content_meta_type': 'CPS Document',
     111    'product': 'CPSDocument',
     112    'factory': 'addCPSDocument',
     113    'immediate_view': 'cpsdocument_view',
     114    'global_allow': True,
     115    'filter_content_types': True,
     116    'allowed_content_types': (),
     117    'allow_discussion': False,
     118    'cps_is_searchable': True,
     119    'cps_proxy_type': 'document',
     120    'cps_display_as_document_in_listing': True,
     121    'schemas': ('metadata', 'scratch_card'),
     122    'layouts': ('common', 'scratch_card'),
     123    'cps_workspace_wf': 'waeup_workspace_wf',
     124    'cps_section_wf': 'waeup_section_wf',
     125##    'actions': (
     126##         {'id': 'view',
     127##          'name': 'action_view',
     128##          'action': 'string:${object_url}/document_view',
     129##          'condition': '',
     130##          'permission': ('View',),
     131##          'category': 'object',
     132##          'visible': True,},
     133##         {'id': 'new_content',
     134##          'name': 'Add a scratch card',
     135##          'action': 'string:${object_url}/folder_factories',
     136##          'condition': "python:len(object.contentItems()) == 0 ",
     137##          'permission': ('Modify portal content',),
     138##          'category': 'object',
     139##          'visible': True,},
     140##         {'id': 'contents',
     141##          'name': 'action_folder_contents',
     142##          'action': 'string:${object_url}/folder_contents',
     143##          'condition': "python:object.getTypeInfo().cps_proxy_type != 'document'",
     144##          'permission': ('Modify portal content',),
     145##          'category': 'object',
     146##          'visible': True,},
     147##         {'id': 'edit',
     148##          'name': 'action_edit',
     149##          'action': 'string:${object_url}/cpsdocument_edit_form',
     150##          'condition': '',
     151##          'permission': ('Modify portal content',),
     152##          'category': 'object',
     153##          'visible': True,},
     154##    )
     155}
    106156#
    107157#
     
    134184types['StudentFolder'] = student_folder_type
    135185types['Student'] = student_type
     186types['ScratchCard'] = scratch_card
    136187types['Jamb'] = jamb_type
    137188
Note: See TracChangeset for help on using the changeset viewer.