Changeset 25
- Timestamp:
- 30 Sep 2005, 16:19:00 (19 years ago)
- Location:
- waeup_product/trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/Extensions/install.py
r23 r25 173 173 'Student': 'waeup_section_wf', 174 174 'Jamb': 'waeup_section_wf', 175 'ScratchCard': 'waeup_section_wf', 175 176 } 176 177 -
waeup_product/trunk/skins/waeup_default/getWAeUPLayouts.py
r20 r25 36 36 'label': 'University', 37 37 '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', 38 60 'description': '', 39 61 'help': '', … … 80 102 [{'widget_id': 'jamb_is_admitted', 'ncols': 1},], 81 103 [{'widget_id': 'jamb_where_admitted', 'ncols': 1},], 104 [{'widget_id': 'jamb_pin_usage', 'ncols': 1},], 82 105 [{'widget_id': 'faculty', 'ncols': 1},], 83 106 ] … … 114 137 'data': { 115 138 'title': 'SC Pin', 116 'fields': ( ),139 'fields': ('sc_pin'), 117 140 'is_required': True, 118 141 'label': 'Scratchcard Pin', -
waeup_product/trunk/skins/waeup_default/getWAeUPSchemas.py
r20 r25 253 253 }, 254 254 } 255 256 scratch_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 } 255 301 schemas = {} 256 302 schemas['student'] = student_schema 257 303 schemas['jamb'] = jamb_schema 304 schemas['scratchcard'] = scratch_card 258 305 259 306 return schemas -
waeup_product/trunk/skins/waeup_default/getWAeUPTypes.py
r20 r25 18 18 'global_allow': 1, 19 19 'filter_content_types': 1, 20 'allowed_content_types': ('Student', ),20 'allowed_content_types': ('Student','ScratchCard'), 21 21 'allow_discussion': 0, 22 22 'cps_is_searchable': 1, … … 104 104 ) 105 105 } 106 scratch_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 } 106 156 # 107 157 # … … 134 184 types['StudentFolder'] = student_folder_type 135 185 types['Student'] = student_type 186 types['ScratchCard'] = scratch_card 136 187 types['Jamb'] = jamb_type 137 188 -
waeup_product/trunk/skins/waeup_student/check_admission_form.pt
r21 r25 1 1 <metal:html use-macro="here/main_template/macros/master"> 2 2 3 <metal:block fill-slot="header" /> 4 5 <metal:main fill-slot="main"> 6 <form action="." method="post" 7 tal:attributes="action string:${here_url}/check_admission"> 8 <input type="submit" class="standalone" value="check" /> 9 </p> 10 </form> 11 </metal:main> 12 3 <metal:block fill-slot="header" /> 4 <metal:main fill-slot="main" tal:define="lotool here/portal_layouts"> 5 <metal:block tal:condition="python: 1" define-macro="default_view" 6 tal:define="layout python: lotool.checkadmission; 7 ldef python: lotool.checkadmission.getLayoutDefinition()" 8 > 9 <form action='check_admission' method='post' 10 enctype='multipart/form-data' class='workflow'> 11 <table tal:condition="python: 1" width="100%" cellpadding="2" cellspacing="2" border="0" 12 summary="layout"> 13 <tr valign="top"> 14 <td colspan="1"> 15 <div class=""> 16 <div class="label"> 17 <label>Student Id</label> 18 </div> 19 <div class="field"> 20 <input name="student Id" type="text" value="" size="10" /> 21 </div> 22 </div> 23 </td> 24 </tr> 25 <tr valign="top"> 26 <td colspan="1"> 27 <div class="label"> 28 <label>Scratch Card Pin</label> 29 </div> 30 <div class="field"> 31 <input name="sc_pin" type="text" value="" size="10" /> 32 </div> 33 </td> 34 </tr> 35 <tr valign="top"> 36 <td colspan="1"> 37 <input type="submit" class="standalone" 38 name="cpsdocument_create_button" value="check" /> 39 </td> 40 </tr> 41 </table> 42 </form> 43 </metal:block> 44 </metal:main> 13 45 </metal:html>
Note: See TracChangeset for help on using the changeset viewer.