Changeset 113 for waeup_product/trunk/skins
- Timestamp:
- 28 Oct 2005, 10:17:39 (19 years ago)
- Location:
- waeup_product/trunk/skins
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/skins/waeup_default/getWAeUPSchemas.py
r107 r113 7 7 8 8 students_folder_schema = { ###( 9 } 10 ###) 11 12 academics_folder_schema = { ###( 9 13 } 10 14 ###) … … 457 461 458 462 schemas['university'] = university_schema 463 schemas['academics'] = academics_folder_schema 459 464 schemas['students'] = students_folder_schema 460 465 schemas['student'] = student_schema -
waeup_product/trunk/skins/waeup_default/getWAeUPTypes.py
r111 r113 34 34 'condition': "python:member and 'Manager' in member.getRoles()", 35 35 'permissions': (View,)}, 36 {'id': 'add_faculty', 37 'name': 'Add a Faculty', 38 'condition': "python:member and not 'Student'in member.getRoles()", 39 'action' : 'string:${object/absolute_url}/create_common?type_name=Faculty', 40 #'action': 'folder_factories', 41 'permissions': (UniversityManage,)}, 42 {'id': 'add_accommodation', 43 'name': 'Add an Accommodation Hall', 44 'condition': "python:member and not 'Student'in member.getRoles()", 45 'action' : 'string:${object/absolute_url}/add_accommodation', 46 #'action': 'folder_factories', 47 'permissions': (UniversityManage,)}, 36 ## {'id': 'add_accommodation', 37 ## 'name': 'Add an Accommodation Hall', 38 ## 'condition': "python:member and not 'Student'in member.getRoles()", 39 ## 'action' : 'string:${object/absolute_url}/add_accommodation', 40 ## #'action': 'folder_factories', 41 ## 'permissions': (UniversityManage,)}, 48 42 {'id': 'new_content', 49 43 'name': 'New content', … … 56 50 'name': 'action_folder_contents', 57 51 'action': 'folder_contents', 58 'condition': "python:member and 'UniversityManager' in member.getRoles()", 59 'permissions': (ModifyPortalContent,UniversityManage,)}, 52 'condition': "python:member and 'Manager' in member.getRoles()", 53 'condition': "", 54 'permissions': (ModifyPortalContent,)}, 60 55 {'id': 'edit', 61 56 'name': 'action_edit', … … 68 63 'condition': "python:member and 'Manager' in member.getRoles()", 69 64 'permissions': (ModifyPortalContent,)}, 70 {'id': 'localroles', 71 'name': 'delegate', 72 'action': 'folder_localrole_form', 73 'permissions': (UniversityManage,StudentManage) 74 }, 65 {'id': 'localroles', 66 'name': 'delegate', 67 'action': 'folder_localrole_form', 68 'permissions': (ModifyPortalContent), 69 'visible' : 0, 70 }, 75 71 ) 76 72 } … … 100 96 'name': 'Students', 101 97 'action': 'students_folder_view', 102 'condition': "python:member and 'Manager' in member.getRoles()",98 #'condition': "python:member and 'Manager' in member.getRoles()", 103 99 'permissions': (View,)}, 104 100 ## { … … 136 132 ) 137 133 } 134 ###) 135 136 academics_folder_type = { ###( 137 'title': 'WAeUP Academics Folder', 138 'description': 'The WAeUP Academics Folder', 139 'content_icon': '', 140 'content_meta_type': 'AcademicsFolder', 141 'product': 'CPSDefault', 142 'factory': 'addFolder', 143 'immediate_view': 'folder_view', 144 'global_allow': 1, 145 'filter_content_types': 1, 146 'allowed_content_types': ('Faculty',), 147 'allow_discussion': 0, 148 'cps_is_searchable': 1, 149 'cps_display_as_document_in_listing': 1, 150 'cps_proxy_type': 'folder', 151 'schemas': ['metadata', 'common', 'folder'], 152 'layouts': ['waeup_common','folder'], 153 'layout_clusters': ['metadata:metadata'], 154 'cps_section_wf': 'waeup_section_wf', 155 'actions': ({'id': 'view', 156 'name': 'Academics', 157 'action': 'academics_view', 158 'condition': "", 159 'permissions': (View,)}, 160 {'id': 'add_faculty', 161 'name': 'Add a Faculty', 162 'condition': "python:member and 'UniversityManager'in member.getRoles()", 163 'action' : 'string:${object/absolute_url}/create_common?type_name=Faculty', 164 'permissions': (UniversityManage,)}, 165 {'id': 'localroles', 166 'name': 'delegate', 167 'action': 'folder_localrole_form', 168 'permissions': (UniversityManage,), 169 'visible': False, 170 }, 171 ) 172 } 138 173 ###) 139 174 … … 624 659 types['University'] = university_type 625 660 types['StudentsFolder'] = students_folder_type 661 types['AcademicsFolder'] = academics_folder_type 626 662 types['Student'] = student_type 627 663 types['StudentPersonal'] = student_personal_type -
waeup_product/trunk/skins/waeup_default/university_view.py
r111 r113 10 10 if 'Manager' in member.getRoles(): 11 11 return context.folder_view() 12 return context.documents.frontpage() 12 index = getattr(context,'documents',None) 13 if index: 14 fp = getattr(index,'frontpage',None) 15 if fp: 16 return fp() 13 17 return context.university_view_all(psm=psm) -
waeup_product/trunk/skins/waeup_default/university_view_all.pt
r111 r113 17 17 items here/contentValues" 18 18 > 19 <span tal:content="context/documents/frontpage/content" />20 19 <a href="" tal:attributes="href string:${context/absolute_url}/admission_status">Admission List UME</a>.<br /> 21 20 <a href="" tal:attributes="href string:${context/absolute_url}/check_admission">Admission Request (JAMB canditates only)</a>. -
waeup_product/trunk/skins/waeup_student/students_folder_view.py
r106 r113 11 11 if 'Manager' in roles: 12 12 return context.folder_view() 13 elif 'StudentManager' in roles :13 elif 'StudentManager' in roles or 'UniversityManager' in roles: 14 14 return context.students_folder_view_manager(psm=psm) 15 15 elif 'Student' in roles:
Note: See TracChangeset for help on using the changeset viewer.