Changeset 49
- Timestamp:
- 16 Oct 2005, 16:09:41 (19 years ago)
- Location:
- waeup_product/trunk
- Files:
-
- 3 added
- 5 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/Extensions/install.py
r47 r49 63 63 'action' : 'string:${object/absolute_url}/check_admission', 64 64 'permission': (View, ), 65 'condition' : ' member',66 'category' : 'student', 67 'visible' : 1, 68 }, 69 { 'tool' : 'portal_actions',70 'id' : 'new_student',71 'name' : 'Add Student',72 'action' : 'string:${object/absolute_url}/create_student_form',73 'permission': (View),74 'condition' : 'python:member and here.portal_type == "StudentsFolder"',75 'category' : 'student',76 'visible' : 1,77 },65 'condition' : 'python: not member', 66 'category' : 'student', 67 'visible' : 1, 68 }, 69 ## { 'tool' : 'portal_actions', 70 ## 'id' : 'new_student', 71 ## 'name' : 'Add Student', 72 ## 'action' : 'string:${object/absolute_url}/create_student_form', 73 ## 'permission': (View), 74 ## 'condition' : 'python: 0 and member and here.portal_type == "StudentsFolder"', 75 ## 'category' : 'student', 76 ## 'visible' : 1, 77 ## }, 78 78 { 'tool' : 'portal_actions', 79 79 'id' : 'edit_student', … … 81 81 'action' : 'cpsdocument_edit_form', 82 82 'permission': ( ), 83 'condition' : 'python: member and here.portal_type == "Student"',83 'condition' : 'python: 0 and member and here.portal_type == "Student"', 84 84 'category' : 'student', 85 85 'visible' : 1, … … 87 87 { 'tool' : 'portal_actions', 88 88 'id' : 'add_jamb', 89 'name' : 'Add Jamb Data',90 'action' : 'string:${object/absolute_url}/create_jamb _form',89 'name' : 'Add Student JAMB', 90 'action' : 'string:${object/absolute_url}/create_jamb', 91 91 'permission': (), 92 'condition' : 'python: not here.portal_type in ("Jamb","StudentsFolder") and len(object.contentItems()) == 0',92 'condition' : 'python: member and here.portal_type in ("StudentsFolder",) and "StudentManager" in member.getGroups()', 93 93 'category' : 'student', 94 94 'visible' : 1, … … 99 99 'action' : 'string:${object/absolute_url}/create_personal_form', 100 100 'permission': (), 101 'condition' : 'python: not here.portal_type in ("Jamb","StudentsFolder")',101 'condition' : 'python: 0 and member and not here.portal_type in ("Jamb","StudentsFolder") and not "StudentManager" in member.getGroups()', 102 102 'category' : 'student', 103 103 'visible' : 1, … … 108 108 'action' : 'cpsdocument_edit_form', 109 109 'permission': ( ), 110 'condition' : 'python: here.portal_type == "Jamb"',110 'condition' : 'python: member and here.portal_type in ("Student",) and "StudentManager" in member.getGroups()', 111 111 'category' : 'student', 112 112 'visible' : 1, -
waeup_product/trunk/skins/waeup_default/getWAeUPLayouts.py
r47 r49 103 103 'data': { 104 104 'title': 'Jamb Admission', 105 'fields': ('jamb_ where_admitted',),105 'fields': ('jamb_is_admitted',), 106 106 'is_required': False, 107 107 'label': 'Jamb Admission', … … 121 121 }, 122 122 }, 123 'jamb_where_admitted': {124 'type': 'String Widget',125 'data': {126 'title': 'Jamb Admission Location',127 'fields': ('jamb_where_admitted',),128 'is_required': False,129 'label': 'University',130 'label_edit': 'University',131 'description': '',132 'help': '',133 'is_i18n': False,134 'readonly_layout_modes': (),135 'hidden_layout_modes': (),136 'hidden_readonly_layout_modes': (),137 'hidden_empty': False,138 'hidden_if_expr': '',139 'css_class': '',140 'widget_mode_expr': '',141 'display_width': 10,142 'size_max': 0,143 },144 },123 ## 'jamb_where_admitted': { 124 ## 'type': 'String Widget', 125 ## 'data': { 126 ## 'title': 'Jamb Admission Location', 127 ## 'fields': ('jamb_where_admitted',), 128 ## 'is_required': False, 129 ## 'label': 'University', 130 ## 'label_edit': 'University', 131 ## 'description': '', 132 ## 'help': '', 133 ## 'is_i18n': False, 134 ## 'readonly_layout_modes': (), 135 ## 'hidden_layout_modes': (), 136 ## 'hidden_readonly_layout_modes': (), 137 ## 'hidden_empty': False, 138 ## 'hidden_if_expr': '', 139 ## 'css_class': '', 140 ## 'widget_mode_expr': '', 141 ## 'display_width': 10, 142 ## 'size_max': 0, 143 ## }, 144 ## }, 145 145 ## 'jamb_pin_usage': { 146 146 ## 'type': 'Int Widget', … … 194 194 'rows': [ 195 195 [{'widget_id': 'jamb_is_admitted', 'ncols': 1},], 196 [{'widget_id': 'jamb_where_admitted', 'ncols': 1},],196 #[{'widget_id': 'jamb_where_admitted', 'ncols': 1},], 197 197 #[{'widget_id': 'jamb_pin_usage', 'ncols': 1},], 198 198 [{'widget_id': 'faculty', 'ncols': 1},], … … 477 477 ###) 478 478 479 jamb_layout = { ###(479 jamb_layoutcreate = { ###( 480 480 'widgets': { 481 481 'reg_nr': { … … 679 679 }, 680 680 }, 681 'sc_id': { 682 'type': 'String Widget', 683 'data': { 684 'title': '', 685 'fields': ('admission_sc_id',), 686 'is_required': False, 687 'label': 'Scratch card ID used', 688 'label_edit': 'Scratch card ID used', 689 'description': '', 690 'help': '', 691 'is_i18n': False, 692 'readonly_layout_modes': (), 693 'hidden_layout_modes': (), 694 'hidden_readonly_layout_modes': (), 695 'hidden_empty': False, 696 'hidden_if_expr': '', 697 'css_class': '', 698 'widget_mode_expr': '', 699 'display_width': 20, 700 'size_max': 0, 701 }, 702 }, 703 'sc_pin': { 704 'type': 'String Widget', 705 'data': { 706 'title': '', 707 'fields': ('admission_sc_pin',), 708 'is_required': False, 709 'label': 'Scratch card PIN used', 710 'label_edit': 'Scratch card PIN used', 711 'description': '', 712 'help': '', 713 'is_i18n': False, 714 'readonly_layout_modes': (), 715 'hidden_layout_modes': (), 716 'hidden_readonly_layout_modes': (), 717 'hidden_empty': False, 718 'hidden_if_expr': '', 719 'css_class': '', 720 'widget_mode_expr': '', 721 'display_width': 20, 722 'size_max': 0, 723 }, 724 }, 681 725 }, 682 726 'layout': { 683 'style_prefix': 'layout_ default_',727 'style_prefix': 'layout_jambcreate_', 684 728 'flexible_widgets': (), 685 729 'ncols': 1, … … 687 731 [{'widget_id': 'reg_nr', 'ncols': 1},], 688 732 [{'widget_id': 'name', 'ncols': 1},], 733 #[{'widget_id': 'sc_id', 'ncols': 1},], 734 #[{'widget_id': 'sc_pin', 'ncols': 1},], 689 735 [{'widget_id': 'age', 'ncols': 1},], 690 736 [{'widget_id': 'sex', 'ncols': 1},], … … 699 745 ###) 700 746 747 jamb_layout = { ###( 748 'widgets': { 749 'reg_nr': { 750 'type': 'StudentId Widget', 751 'data': { 752 'title': 'Student ID', 753 'fields': ('reg_nr',), 754 'is_required': True, 755 'label': 'Student ID', 756 'label_edit': 'Student ID', 757 'description': 'The Student ID from JAMB', 758 'help': 'The Student ID from JAMB', 759 'is_i18n': False, 760 'readonly_layout_modes': (), 761 'hidden_layout_modes': (), 762 'hidden_readonly_layout_modes': (), 763 'hidden_empty': False, 764 'hidden_if_expr': '', 765 'css_class': '', 766 'widget_mode_expr': '', 767 'display_width': 8, 768 'size_max': 8, 769 }, 770 }, 771 'name': { 772 'type': 'String Widget', 773 'data': { 774 'title': '', 775 'fields': ('name',), 776 'is_required': False, 777 'label': 'Name', 778 'label_edit': 'Name', 779 'description': '', 780 'help': 'Please enter your full name.', 781 'is_i18n': False, 782 'readonly_layout_modes': (), 783 'hidden_layout_modes': (), 784 'hidden_readonly_layout_modes': (), 785 'hidden_empty': False, 786 'hidden_if_expr': '', 787 'css_class': '', 788 'widget_mode_expr': '', 789 'display_width': 40, 790 'size_max': 0, 791 }, 792 }, 793 'age': { 794 'type': 'Int Widget', 795 'data': { 796 'title': '', 797 'fields': ('age',), 798 'is_required': False, 799 'label': 'Age', 800 'label_edit': 'Age', 801 'description': '', 802 'help': '', 803 'is_i18n': False, 804 'readonly_layout_modes': (), 805 'hidden_layout_modes': (), 806 'hidden_readonly_layout_modes': (), 807 'hidden_empty': False, 808 'hidden_if_expr': '', 809 'css_class': '', 810 'widget_mode_expr': '', 811 'display_width': 2, 812 'size_max': 2, 813 }, 814 }, 815 'sex': { 816 'type': 'Boolean Widget', 817 'data': { 818 'title': '', 819 'fields': ('sex',), 820 'is_required': False, 821 'label': 'sex', 822 'label_edit': 'sex', 823 'label_false': 'male', 824 'label_true': 'female', 825 'description': '', 826 'help': '', 827 'is_i18n': False, 828 'readonly_layout_modes': (), 829 'hidden_layout_modes': (), 830 'hidden_readonly_layout_modes': (), 831 'hidden_empty': False, 832 'hidden_if_expr': '', 833 'css_class': '', 834 'widget_mode_expr': '', 835 'display_width': 20, 836 'size_max': 0, 837 }, 838 }, 839 'state': { 840 'type': 'String Widget', 841 'data': { 842 'title': '', 843 'fields': ('state_of_origin',), 844 'is_required': False, 845 'label': 'State', 846 'label_edit': 'State', 847 'description': '', 848 'help': '', 849 'is_i18n': False, 850 'readonly_layout_modes': (), 851 'hidden_layout_modes': (), 852 'hidden_readonly_layout_modes': (), 853 'hidden_empty': False, 854 'hidden_if_expr': '', 855 'css_class': '', 856 'widget_mode_expr': '', 857 'display_width': 20, 858 'size_max': 0, 859 }, 860 }, 861 'exam_results': { 862 'type': 'String Widget', 863 'data': { 864 'title': '', 865 'fields': ('exam_results',), 866 'is_required': False, 867 'label': 'Jamb Results', 868 'label_edit': 'Jamb Results', 869 'description': '', 870 'help': '', 871 'is_i18n': False, 872 'readonly_layout_modes': (), 873 'hidden_layout_modes': (), 874 'hidden_readonly_layout_modes': (), 875 'hidden_empty': False, 876 'hidden_if_expr': '', 877 'css_class': '', 878 'widget_mode_expr': '', 879 'display_width': 20, 880 'size_max': 0, 881 }, 882 }, 883 'aggregate': { 884 'type': 'String Widget', 885 'data': { 886 'title': 'Agregate', 887 'fields': ('aggregate',), 888 'is_required': False, 889 'label': 'Aggregate', 890 'label_edit': 'Aggregate', 891 'description': '', 892 'help': '', 893 'is_i18n': False, 894 'readonly_layout_modes': (), 895 'hidden_layout_modes': (), 896 'hidden_readonly_layout_modes': (), 897 'hidden_empty': False, 898 'hidden_if_expr': '', 899 'css_class': '', 900 'widget_mode_expr': '', 901 'display_width': 3, 902 'size_max': 0, 903 }, 904 }, 905 '2nd_choice': { 906 'type': 'String Widget', 907 'data': { 908 'title': 'Second choice', 909 'fields': ('2nd_choice',), 910 'is_required': False, 911 'label': 'Second choice', 912 'label_edit': 'Second choice', 913 'description': '', 914 'help': 'second_choice', 915 'is_i18n': False, 916 'readonly_layout_modes': (), 917 'hidden_layout_modes': (), 918 'hidden_readonly_layout_modes': (), 919 'hidden_empty': False, 920 'hidden_if_expr': '', 921 'css_class': '', 922 'widget_mode_expr': '', 923 'display_width': 20, 924 'size_max': 0, 925 }, 926 }, 927 '3rd_choice': { 928 'type': 'String Widget', 929 'data': { 930 'title': 'Third_choice', 931 'fields': ('3rd_choice',), 932 'is_required': False, 933 'label': 'Third choice', 934 'label_edit': 'Third choice', 935 'description': 'third_choice', 936 'help': 'third_choice', 937 'is_i18n': False, 938 'readonly_layout_modes': (), 939 'hidden_layout_modes': (), 940 'hidden_readonly_layout_modes': (), 941 'hidden_empty': False, 942 'hidden_if_expr': '', 943 'css_class': '', 944 'widget_mode_expr': '', 945 'display_width': 20, 946 'size_max': 0, 947 }, 948 }, 949 'sc_id': { 950 'type': 'String Widget', 951 'data': { 952 'title': '', 953 'fields': ('admission_sc_id',), 954 'is_required': False, 955 'label': 'Scratch card ID used', 956 'label_edit': 'Scratch card ID used', 957 'description': '', 958 'help': '', 959 'is_i18n': False, 960 'readonly_layout_modes': (), 961 'hidden_layout_modes': (), 962 'hidden_readonly_layout_modes': (), 963 'hidden_empty': False, 964 'hidden_if_expr': '', 965 'css_class': '', 966 'widget_mode_expr': '', 967 'display_width': 20, 968 'size_max': 0, 969 }, 970 }, 971 'sc_pin': { 972 'type': 'String Widget', 973 'data': { 974 'title': '', 975 'fields': ('admission_sc_pin',), 976 'is_required': False, 977 'label': 'Scratch card PIN used', 978 'label_edit': 'Scratch card PIN used', 979 'description': '', 980 'help': '', 981 'is_i18n': False, 982 'readonly_layout_modes': (), 983 'hidden_layout_modes': (), 984 'hidden_readonly_layout_modes': (), 985 'hidden_empty': False, 986 'hidden_if_expr': '', 987 'css_class': '', 988 'widget_mode_expr': '', 989 'display_width': 20, 990 'size_max': 0, 991 }, 992 }, 993 }, 994 'layout': { 995 'style_prefix': 'layout_default_', 996 'flexible_widgets': (), 997 'ncols': 1, 998 'rows': [ 999 [{'widget_id': 'reg_nr', 'ncols': 1},], 1000 [{'widget_id': 'name', 'ncols': 1},], 1001 [{'widget_id': 'sc_id', 'ncols': 1},], 1002 [{'widget_id': 'sc_pin', 'ncols': 1},], 1003 [{'widget_id': 'age', 'ncols': 1},], 1004 [{'widget_id': 'sex', 'ncols': 1},], 1005 [{'widget_id': 'state', 'ncols': 1},], 1006 [{'widget_id': 'exam_results', 'ncols': 1},], 1007 [{'widget_id': 'aggregate', 'ncols': 1},], 1008 [{'widget_id': '2nd_choice', 'ncols': 1},], 1009 [{'widget_id': '3rd_choice', 'ncols': 1},], 1010 ] 1011 }, 1012 } 1013 ###) 1014 701 1015 layouts = {} 702 1016 layouts['waeup_common'] = common_layout … … 705 1019 layouts['scratch_card'] = scratch_card 706 1020 layouts['admission'] = admission 1021 layouts['jambcreate'] = jamb_layoutcreate 707 1022 layouts['jamb'] = jamb_layout 708 1023 return layouts -
waeup_product/trunk/skins/waeup_default/getWAeUPSchemas.py
r47 r49 52 52 }, 53 53 }, 54 'jamb_where_admitted': {55 'type': 'CPS String Field',56 'data': {57 'default_expr': 'string:Lagos',58 'is_searchabletext': True,59 'acl_read_permissions': '',60 'acl_read_roles': '',61 'acl_read_expr': '',62 'acl_write_permissions': '',63 'acl_write_roles': '',64 'acl_write_expr': '',65 'read_ignore_storage': False,66 'read_process_expr': '',67 'read_process_dependent_fields': (),68 'write_ignore_storage': False,69 'write_process_expr': '',70 },71 },54 ## 'jamb_where_admitted': { 55 ## 'type': 'CPS String Field', 56 ## 'data': { 57 ## 'default_expr': 'string:Lagos', 58 ## 'is_searchabletext': True, 59 ## 'acl_read_permissions': '', 60 ## 'acl_read_roles': '', 61 ## 'acl_read_expr': '', 62 ## 'acl_write_permissions': '', 63 ## 'acl_write_roles': '', 64 ## 'acl_write_expr': '', 65 ## 'read_ignore_storage': False, 66 ## 'read_process_expr': '', 67 ## 'read_process_dependent_fields': (), 68 ## 'write_ignore_storage': False, 69 ## 'write_process_expr': '', 70 ## }, 71 ## }, 72 72 'faculty': { 73 73 'type': 'CPS String Field', … … 163 163 'type': 'CPS String Field', 164 164 'data': { 165 'default_expr': '',166 165 'is_searchabletext': True, 167 166 'acl_read_permissions': '', -
waeup_product/trunk/skins/waeup_default/getWAeUPTypes.py
r47 r49 135 135 {'id': 'view', 136 136 'name': 'action_view', 137 'action': 'string:${object_url}/student_ view',137 'action': 'string:${object_url}/student_index_html', 138 138 #'action': 'string:${object_url}/cpsdocument_view', 139 139 'condition': '', -
waeup_product/trunk/skins/waeup_default/portlet_session_info.pt
r46 r49 1 1 <tal:block define="mtool here/portal_membership; 2 anonymous mtool/isAnonymousUser"> 2 anonymous mtool/isAnonymousUser; 3 member mtool/getAuthenticatedMember" 4 > 3 5 <tal:block condition="not:anonymous"> 4 6 <span i18n:translate="">You are currently logged in as 5 7 <em i18n:name="member" 6 tal:content="mtool/getAuthenticatedMember" /> 8 tal:content="member" /><br /> 9 <a href="" tal:condition="python: 'Students' in member.getGroups()" 10 tal:attributes="href string:${here/portal_url}/sections/unidemo/students/${member}">goto your personal area</a> 7 11 </span><br /> 8 12 (<a href="" i18n:translate="" 9 tal:attributes="href string:${here/portal_url}/logout">log out</a>)13 tal:attributes="href string:${here/portal_url}/logout">log out</a>) 10 14 </tal:block> 11 15 <tal:block condition="anonymous"> 12 <span >You are currently not logged in </span> 16 <span >You are currently not logged in </span><br /> 17 <a href="" tal:attributes="href string:${here/portal_url}/sections/unidemo/students/check_admission">check your admission status</a> 13 18 </tal:block> 14 <br />15 <a tal:condition="python: 0" href="" i18n:translate=""16 tal:attributes="href string:${here/portal_url}/sections/unidemo/students">Studentadministration</a>19 <br /> 20 <a tal:condition="python: 0" href="" i18n:translate="" 21 tal:attributes="href string:${here/portal_url}/sections/unidemo/students">Studentadministration</a> 17 22 </tal:block> -
waeup_product/trunk/skins/waeup_default/portlet_studentnavigation.pt
r47 r49 2 2 anonymous mtool/isAnonymousUser; 3 3 user python: mtool.getAuthenticatedMember(); 4 folder_id python:str(user) [1:]"4 folder_id python:str(user)" 5 5 > 6 <tal:block condition="python: not anonymous">6 <tal:block condition="python: 'Students' in user.getGroups()"> 7 7 <a href="" i18n:translate="" 8 tal:attributes="href string:${here/portal_url}/sections/unidemo/students/${folder_id}">Studentadministration</a> 8 tal:attributes="href string:${here/portal_url}/sections/unidemo/students/${folder_id}" 9 tal:content="string: Personal area for JAMB Registration ${folder_id}"></a> 10 </tal:block> 11 <tal:block condition="python: 'StudentManager' in user.getGroups()"> 12 <a href="" i18n:translate="" 13 tal:attributes="href string:${here/portal_url}/sections/unidemo/students" 14 >Studentadministration</a> 9 15 </tal:block> 10 16 <tal:block condition="anonymous">
Note: See TracChangeset for help on using the changeset viewer.