Changeset 139 for waeup_product/trunk/skins/waeup_default
- Timestamp:
- 2 Nov 2005, 14:40:07 (19 years ago)
- Location:
- waeup_product/trunk/skins/waeup_default
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/skins/waeup_default/getWAeUPLayouts.py
r137 r139 178 178 ## }, 179 179 ## }, 180 ## 'jamb_pin_usage': {181 ## 'type': 'Int Widget',182 ## 'data': {183 ## 'title': 'Jamb Pin usage',184 ## 'fields': ('jamb_pin_usage',),185 ## 'is_required': False,186 ## 'label': 'Nr of Cardusage',187 ## 'label_edit': 'Nr of Cardusage',188 ## 'description': '',189 ## 'help': 'How many times has the scratchcard been used',190 ## 'is_i18n': False,191 ## 'readonly_layout_modes': (),192 ## 'hidden_layout_modes': (),193 ## 'hidden_readonly_layout_modes': (),194 ## 'hidden_empty': False,195 ## 'hidden_if_expr': '',196 ## 'css_class': '',197 ## 'widget_mode_expr': '',198 ## 'display_width': 2,199 ## 'size_max': 2,200 ## },201 ## },202 180 'faculty': { 203 181 'type': 'String Widget', … … 228 206 'ncols': 1, 229 207 'rows': [ 230 [{'widget_id': 'jamb_is_admitted', 'ncols': 1},],208 #[{'widget_id': 'jamb_is_admitted', 'ncols': 1},], 231 209 #[{'widget_id': 'jamb_where_admitted', 'ncols': 1},], 232 210 #[{'widget_id': 'jamb_pin_usage', 'ncols': 1},], 233 [{'widget_id': 'faculty', 'ncols': 1},],211 #[{'widget_id': 'faculty', 'ncols': 1},], 234 212 ] 235 213 }, … … 508 486 [{'widget_id': 'sc_pin', 'ncols': 1},], 509 487 [{'widget_id': 'jamb_id', 'ncols': 1},], 510 ]511 },512 }513 ###)514 515 accobook = { ###(516 'widgets': {517 'sc_id': {518 'type': 'String Widget',519 'data': {520 'title': 'SC ID',521 'fields': ('accommodation_sc_id',),522 'is_required': False,523 'label': 'Card Serial Number ',524 'label_edit': 'Card Serial Number',525 'description': 'Card Serial Number ',526 'help': 'This can be found on the bottom right of the reverse side of your Scratch Card',527 'is_i18n': False,528 'readonly_layout_modes': (),529 'hidden_layout_modes': (),530 'hidden_readonly_layout_modes': (),531 'hidden_empty': False,532 'hidden_if_expr': 'python:1',533 'css_class': '',534 'widget_mode_expr': '',535 'display_width': 10,536 'size_max': 0,537 },538 },539 'sc_pin': {540 'type': 'Scratchcard Pin Widget',541 'data': {542 'title': 'SC Pin',543 'fields': ('accommodation_sc_pin'),544 'is_required': True,545 'label': 'enter an Accommodation PIN',546 'label_edit': 'enter an Accommodation PIN',547 'description': '',548 'help': 'Please enter a PIN valid for Accomodation booking',549 'is_i18n': False,550 'readonly_layout_modes': (),551 'hidden_layout_modes': (),552 'hidden_readonly_layout_modes': (),553 'hidden_empty': False,554 'hidden_if_expr': '',555 'css_class': '',556 'widget_mode_expr': '',557 'display_width': 10,558 'size_max': 10,559 },560 },561 },562 'layout': {563 'style_prefix': 'layout_accobook_',564 'flexible_widgets': (),565 'ncols': 1,566 'rows': [567 #[{'widget_id': 'sc_id', 'ncols': 1},],568 [{'widget_id': 'sc_pin', 'ncols': 1},],569 488 ] 570 489 }, … … 905 824 'data': { 906 825 'fields': ['heading'], 907 'level': 1,826 'level': 2, 908 827 'is_i18n': 0, 909 828 'is_required': 1, 829 'label': 'Title', 910 830 'label_edit': 'Title', 911 831 'help': 'Course Title', … … 914 834 }, 915 835 }, 836 'title': Title, 916 837 'text': Text, 917 838 'level': { … … 1000 921 'rows': [ 1001 922 [{'widget_id': 'heading', 'ncols': 1},], 923 [{'widget_id': 'title', 'ncols': 1},], 1002 924 [{'widget_id': 'text', 'ncols': 1},], 1003 925 [{'widget_id': 'level', 'ncols': 1},], … … 1011 933 ###) 1012 934 935 course_results = { ###( 936 'widgets': { 937 'points': { 938 'type': 'Int Widget', 939 'data': { 940 'title': '', 941 'fields': ('points',), 942 'is_required': False, 943 'label': 'Points', 944 'label_edit': 'Points', 945 'description': '', 946 'help': '', 947 'is_i18n': False, 948 'readonly_layout_modes': (), 949 'hidden_layout_modes': (), 950 'hidden_readonly_layout_modes': (), 951 'hidden_empty': False, 952 'hidden_if_expr': '', 953 'css_class': '', 954 'widget_mode_expr': '', 955 'display_width': 3, 956 'size_max': 3, 957 }, 958 }, 959 'grade': { 960 'type': 'String Widget', 961 'data': { 962 'title': '', 963 'fields': ('grade'), 964 'is_required': False, 965 'label': 'Grade', 966 'label_edit': 'Grade', 967 'description': '', 968 'help': '', 969 'is_i18n': False, 970 'readonly_layout_modes': (), 971 'hidden_layout_modes': (), 972 'hidden_readonly_layout_modes': (), 973 'hidden_empty': False, 974 'hidden_if_expr': '', 975 'css_class': '', 976 'widget_mode_expr': '', 977 'display_width': 2, 978 'size_max': 1, 979 }, 980 }, 981 }, 982 'layout': { 983 'style_prefix': 'layout_default_', 984 'flexible_widgets': (), 985 'ncols': 1, 986 'rows': [ 987 [{'widget_id': 'points', 'ncols': 1},], 988 [{'widget_id': 'grade', 'ncols': 1},], 989 ] 990 }, 991 } 992 ###) 993 1013 994 accommodation = { ###( 1014 995 'widgets': { … … 1017 998 'data': { 1018 999 'fields': ['heading'], 1019 'level': 1,1000 'level': 2, 1020 1001 'is_i18n': 0, 1021 1002 'is_required': 1, 1003 'label': 'Hall Name', 1022 1004 'label_edit': 'Hall Name', 1023 1005 'help': '', … … 1026 1008 }, 1027 1009 }, 1010 'title': Title, 1028 1011 'text': Text, 1029 1012 'which_sex': { … … 1118 1101 'rows': [ 1119 1102 [{'widget_id': 'heading', 'ncols': 1},], 1103 [{'widget_id': 'title', 'ncols': 1},], 1120 1104 [{'widget_id': 'text', 'ncols': 1},], 1121 1105 [{'widget_id': 'which_sex', 'ncols': 1},], … … 1125 1109 [{'widget_id': 'beds_per_room', 'ncols': 1},], 1126 1110 [{'widget_id': 'beds_assigned', 'ncols': 1},], 1111 ] 1112 }, 1113 } 1114 ###) 1115 1116 accobook = { ###( 1117 'widgets': { 1118 'sc_id': { 1119 'type': 'String Widget', 1120 'data': { 1121 'title': 'SC ID', 1122 'fields': ('accommodation_sc_id',), 1123 'is_required': False, 1124 'label': 'Card Serial Number ', 1125 'label_edit': 'Card Serial Number', 1126 'description': 'Card Serial Number ', 1127 'help': 'This can be found on the bottom right of the reverse side of your Scratch Card', 1128 'is_i18n': False, 1129 'readonly_layout_modes': (), 1130 'hidden_layout_modes': (), 1131 'hidden_readonly_layout_modes': (), 1132 'hidden_empty': False, 1133 'hidden_if_expr': 'python:1', 1134 'css_class': '', 1135 'widget_mode_expr': '', 1136 'display_width': 10, 1137 'size_max': 0, 1138 }, 1139 }, 1140 'sc_pin': { 1141 'type': 'Scratchcard Pin Widget', 1142 'data': { 1143 'title': 'SC Pin', 1144 'fields': ('accommodation_sc_pin'), 1145 'is_required': True, 1146 'label': 'enter an Accommodation PIN', 1147 'label_edit': 'enter an Accommodation PIN', 1148 'description': '', 1149 'help': 'Please enter a PIN valid for Accomodation booking', 1150 'is_i18n': False, 1151 'readonly_layout_modes': (), 1152 'hidden_layout_modes': (), 1153 'hidden_readonly_layout_modes': (), 1154 'hidden_empty': False, 1155 'hidden_if_expr': '', 1156 'css_class': '', 1157 'widget_mode_expr': '', 1158 'display_width': 10, 1159 'size_max': 10, 1160 }, 1161 }, 1162 }, 1163 'layout': { 1164 'style_prefix': 'layout_accobook_', 1165 'flexible_widgets': (), 1166 'ncols': 1, 1167 'rows': [ 1168 #[{'widget_id': 'sc_id', 'ncols': 1},], 1169 [{'widget_id': 'sc_pin', 'ncols': 1},], 1127 1170 ] 1128 1171 }, -
waeup_product/trunk/skins/waeup_default/getWAeUPSchemas.py
r113 r139 295 295 296 296 297 ###) 298 299 course_results_schema = { ###( 300 'points': { 301 'type': 'CPS Int Field', 302 'data': { 303 'is_searchabletext': 0, 304 }, 305 }, 306 'grade': { 307 'type': 'CPS String Field', 308 'data': { 309 'is_searchabletext': 0, 310 }, 311 }, 312 } 313 # 297 314 ###) 298 315 … … 464 481 schemas['students'] = students_folder_schema 465 482 schemas['student'] = student_schema 483 schemas['course_results'] = course_results_schema 466 484 schemas['student_personal'] = student_personal_schema 467 485 schemas['accommodation'] = accommodation -
waeup_product/trunk/skins/waeup_default/getWAeUPTypes.py
r124 r139 26 26 'cps_proxy_type': 'folder', 27 27 'schemas': ['metadata', 'common', 'folder'], 28 'layouts': [' common', 'university'],28 'layouts': ['waeup_common'], 29 29 'layout_clusters': ['metadata:metadata'], 30 30 'cps_section_wf': 'waeup_section_wf', … … 90 90 'cps_proxy_type': 'folder', 91 91 'schemas': ['metadata', 'common', 'folder'], 92 'layouts': ['waeup_common', 'folder'],92 'layouts': ['waeup_common',], 93 93 'layout_clusters': ['metadata:metadata'], 94 94 'cps_section_wf': 'waeup_section_wf', … … 122 122 'condition': 'object/portal_membership/isAnonymousUser', 123 123 'permission': (View,)}, 124 {'id': 'edit', 125 'name': 'action_edit', 126 'action': 'cpsdocument_edit_form', 127 'condition': "python:member and 'Manager' in member.getRoles()", 128 'permissions': (ModifyPortalContent,UniversityManage,)}, 124 129 { 125 130 'id': 'localroles', … … 196 201 'product': 'WAeUP', 197 202 'factory': 'addStudent', 198 'immediate_view': ' cpsdocument_view',199 'global_allow': True, 200 'filter_content_types': True, 201 'allowed_content_types': ('Jamb','StudentPersonal' ),202 'allow_discussion': False, 203 'cps_is_searchable': True, 204 'cps_proxy_type': ' document',203 'immediate_view': 'folder_view', 204 'global_allow': True, 205 'filter_content_types': True, 206 'allowed_content_types': ('Jamb','StudentPersonal','StudyLevel'), 207 'allow_discussion': False, 208 'cps_is_searchable': True, 209 'cps_proxy_type': 'folder', 205 210 'cps_display_as_document_in_listing': True, 206 211 'schemas': ['metadata','common','student'], … … 239 244 'name' : 'Personal Data', 240 245 'action' : 'string:${object/absolute_url}/PERSONAL', 246 'condition': '', 247 'permission': (ModifyPortalContent,)}, 248 { 249 'id' : 'study_level', 250 'name' : 'Register for next Level', 251 'action' : 'string:${object/absolute_url}/register_level', 241 252 'condition': '', 242 253 'permission': (ModifyPortalContent,)}, … … 409 420 ###) 410 421 422 study_level_folder = { ###( 423 'title': 'WAeUP Study Level Folder', 424 'description': '', 425 'content_icon': '', 426 'content_meta_type': 'Level', 427 'product': 'WAeUP', 428 'factory': 'addLevelFolder', 429 'immediate_view': 'folder_view', 430 'global_allow': True, 431 'filter_content_types': True, 432 'allowed_content_types': ('Semester',), 433 'allow_discussion': False, 434 'cps_is_searchable': True, 435 'cps_proxy_type': 'folder', 436 'cps_display_as_document_in_listing': True, 437 'schemas': ['metadata','common',], 438 'layouts': ['waeup_common',], 439 'flexible_layouts': (), 440 'layout_clusters': ['metadata:metadata'], 441 'cps_section_wf': 'waeup_section_wf', 442 'use_content_status_history': 0, 443 'actions': ( 444 {'id': 'view', 445 'name': 'Standard View', 446 #'action': 'accommodation_index_html', 447 'action': 'temporary_view_all', 448 'condition': '', 449 'permission': (View,), 450 'category': 'object', 451 'visible': True,}, 452 {'id': 'add_level', 453 'name': 'Register for next year', 454 'condition': "python:member and 'Student'in member.getRoles()", 455 'action' : 'register_level', 456 #'action': 'folder_factories', 457 'permissions': (StudentManage,)}, 458 {'id': 'metadata', 459 'name': 'action_metadata', 460 'action': 'cpsdocument_metadata', 461 'condition': "python:member and 'Manager' in member.getRoles()", 462 'permissions': (UniversityManage,)}, 463 {'id': 'localroles', 464 'name': 'delegate', 465 'action': 'folder_localrole_form', 466 'permissions': (UniversityManage,), 467 'visible': 0, 468 }, 469 ) 470 } 471 ###) 472 473 semester_folder = { ###( 474 'title': 'WAeUP Semester Folder', 475 'description': '', 476 'content_icon': '', 477 'content_meta_type': 'Semester', 478 'product': 'WAeUP', 479 'factory': 'addLevelFolder', 480 'immediate_view': 'folder_view', 481 'global_allow': True, 482 'filter_content_types': True, 483 'allowed_content_types': ('CourseTicket',), 484 'allow_discussion': False, 485 'cps_is_searchable': True, 486 'cps_proxy_type': 'folder', 487 'cps_display_as_document_in_listing': True, 488 #'schemas': ['metadata','common','course','course_results'], 489 #'layouts': ['waeup_common','course','course_results'], 490 'schemas': ['metadata','common',], 491 'layouts': ['waeup_common',], 492 'flexible_layouts': (), 493 'layout_clusters': ['metadata:metadata'], 494 'cps_section_wf': 'waeup_section_wf', 495 'use_content_status_history': 0, 496 'actions': ( 497 {'id': 'view', 498 'name': 'Standard View', 499 #'action': 'accommodation_index_html', 500 'action': 'temporary_view_all', 501 'condition': '', 502 'permission': (View,), 503 'category': 'object', 504 'visible': True,}, 505 {'id': 'add_course_ticket', 506 'name': 'Add Course Ticket', 507 'condition': "python:member and 'Student'in member.getRoles()", 508 'action' : 'add_course_ticket', 509 #'action': 'folder_factories', 510 'permissions': (StudentManage,)}, 511 {'id': 'metadata', 512 'name': 'action_metadata', 513 'action': 'cpsdocument_metadata', 514 'condition': "python:member and 'Manager' in member.getRoles()", 515 'permissions': (UniversityManage,)}, 516 {'id': 'localroles', 517 'name': 'delegate', 518 'action': 'folder_localrole_form', 519 'permissions': (UniversityManage,), 520 'visible': 0, 521 }, 522 ) 523 } 524 ###) 525 526 course_ticket = { ###( 527 'title': 'WAeUP Course Ticket', 528 'description': '', 529 'content_icon': '', 530 'content_meta_type': 'CourseTicket', 531 'product': 'WAeUP', 532 'factory': 'addCourseTicket', 533 'immediate_view': 'folder_view', 534 'global_allow': True, 535 'filter_content_types': True, 536 'allowed_content_types': (), 537 'allow_discussion': False, 538 'cps_is_searchable': True, 539 'cps_proxy_type': 'cpsdocument', 540 'cps_display_as_document_in_listing': True, 541 'schemas': ['metadata','common','course','course_results'], 542 'layouts': ['waeup_common','course','course_results'], 543 'flexible_layouts': (), 544 'layout_clusters': ['metadata:metadata'], 545 'cps_section_wf': 'waeup_section_wf', 546 'use_content_status_history': 0, 547 'actions': ( 548 {'id': 'view', 549 'name': 'Standard View', 550 #'action': 'accommodation_index_html', 551 'action': 'temporary_view_all', 552 'condition': '', 553 'permission': (View,), 554 'category': 'object', 555 'visible': True,}, 556 {'id': 'metadata', 557 'name': 'action_metadata', 558 'action': 'cpsdocument_metadata', 559 'condition': "python:member and 'Manager' in member.getRoles()", 560 'permissions': (UniversityManage,)}, 561 {'id': 'localroles', 562 'name': 'delegate', 563 'action': 'folder_localrole_form', 564 'permissions': (UniversityManage,), 565 'visible': 0, 566 }, 567 ) 568 } 569 ###) 570 411 571 faculty_type = { ###( 412 572 'title': 'WAeUP Faculty', … … 612 772 'allow_discussion': False, 613 773 'cps_is_searchable': True, 614 'cps_proxy_type': ' cpsdocument',774 'cps_proxy_type': 'folder', 615 775 'cps_display_as_document_in_listing': True, 616 776 'schemas': ['metadata','common',], … … 640 800 'condition': "python:member and 'Manager' in member.getRoles()", 641 801 'permissions': (UniversityManage,)}, 802 {'id': 'edit', 803 'name': 'action_edit', 804 'action': 'cpsdocument_edit_form', 805 'condition': "python:member and 'Manager' in member.getRoles()", 806 'permissions': (ModifyPortalContent,UniversityManage,)}, 642 807 {'id': 'localroles', 643 808 'name': 'delegate', … … 663 828 'allow_discussion': False, 664 829 'cps_is_searchable': True, 665 'cps_proxy_type': ' document',830 'cps_proxy_type': 'cpsdocument', 666 831 'cps_display_as_document_in_listing': True, 667 832 'schemas': ['metadata','common','accommodation'], … … 707 872 types['Student'] = student_type 708 873 types['StudentPersonal'] = student_personal_type 874 types['StudyLevel'] = study_level_folder 875 types['Semester'] = semester_folder 876 types['CourseTicket'] = course_ticket 709 877 types['AccoFolder'] = acco_folder 710 878 types['Accommodation'] = accommodation
Note: See TracChangeset for help on using the changeset viewer.