Changeset 89 for waeup_product/trunk/skins/waeup_default
- Timestamp:
- 26 Oct 2005, 11:54:25 (19 years ago)
- Location:
- waeup_product/trunk/skins/waeup_default
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/skins/waeup_default/getWAeUPTypes.py
r87 r89 32 32 'name': 'action_view', 33 33 'action': 'university_view', 34 'condition': "python:'Manager' in member.getRoles()", 34 35 'permissions': (View,)}, 35 36 {'id': 'addFaculty', … … 40 41 'name': 'action_folder_contents', 41 42 'action': 'folder_contents', 43 'condition': "python:'Manager' in member.getRoles()", 42 44 'permissions': (ModifyPortalContent,UniversityManage,)}, 43 45 {'id': 'edit', … … 45 47 'action': 'cpsdocument_edit_form', 46 48 #'action': 'cpsdocument_edit_form', 49 'condition': "python:'Manager' in member.getRoles()", 47 50 'permissions': (ModifyPortalContent,UniversityManage,)}, 48 51 {'id': 'metadata', 49 52 'name': 'action_metadata', 50 53 'action': 'cpsdocument_metadata', 51 'condition': 'not:portal/portal_membership/isAnonymousUser',54 'condition': "python:'Manager' in member.getRoles()", 52 55 'permissions': (ModifyPortalContent,)}, 53 56 {'id': 'localroles', 54 57 'name': 'action_local_roles', 55 58 'action': 'folder_localrole_form', 59 'condition': 'not:portal/portal_membership/isAnonymousUser', 56 60 'permissions': (ChangePermissions,)}, 57 61 ) … … 82 86 'name': 'Students', 83 87 'action': 'students_folder_view', 88 'condition': "python:'Manager' in member.getRoles()", 84 89 'permissions': (View,)}, 85 90 { … … 87 92 'name' : 'Add Content', 88 93 'action' : 'string:${object/absolute_url}/folder_factories', 94 'condition': "python:'Manager' in member.getRoles()", 89 95 'permissions': (StudentManage,)}, 90 96 { … … 134 140 'cps_section_wf': 'waeup_section_wf', 135 141 'use_content_status_history': 0, 136 'actions _add': (142 'actions': ( 137 143 {'id': 'view', 138 144 'name': 'action_view', … … 143 149 'category': 'object', 144 150 'visible': True,}, 151 {'id': 'metadata', 152 'name': 'action_metadata', 153 'action': 'cpsdocument_metadata', 154 'condition': "python:'Manager' in member.getRoles()", 155 'permissions': (UniversityManage,)}, 145 156 ) 146 157 } … … 223 234 'cps_workspace_wf': 'workspace_content_wf', 224 235 'cps_section_wf': 'section_content_wf', 225 'actions _add': (236 'actions': ( 226 237 {'id': 'view', 227 238 'name': 'action_view', 228 239 'action': 'string:${object_url}/jamb_index_html', 229 #'action': 'string:${object_url}/cpsdocument_view', 230 'condition': '', 231 'permission': ('View',), 232 'category': 'object', 233 'visible': True,}, 240 'condition': '', 241 'permission': (View,), 242 'visible': True,}, 243 {'id': 'edit', 244 'name': 'action_edit', 245 'action': 'string:${object_url}/waeup_edit_form', 246 'condition': '', 247 'permission': (ModifyPortalContent,StudentManage), 248 }, 249 { 250 'id' : 'add_content', 251 'name' : 'Add Content', 252 'action' : 'string:${object/absolute_url}/folder_factories', 253 'condition': "python:'Manager' in member.getRoles()", 254 'permissions': (StudentManage,)}, 255 {'id': 'metadata', 256 'name': 'action_metadata', 257 'action': 'cpsdocument_metadata', 258 'condition': "python:'Manager' in member.getRoles()", 259 'permissions': (UniversityManage,)}, 234 260 ) 235 261 } … … 241 267 'content_icon': '', 242 268 'content_meta_type': 'CPS Document', 243 'product': ' CPSDocument',244 'factory': 'add CPSDocument',245 'immediate_view': ' cpsdocument_view',269 'product': 'WAeUP', 270 'factory': 'addStudentPersonal', 271 'immediate_view': 'student_personal_index_html', 246 272 'global_allow': True, 247 273 'filter_content_types': True, … … 259 285 'cps_workspace_wf': 'workspace_content_wf', 260 286 'cps_section_wf': 'section_content_wf', 261 'actions _add': (287 'actions': ( 262 288 {'id': 'view', 263 289 'name': 'action_view', … … 275 301 'category': 'object', 276 302 'visible': True,}, 303 {'id': 'metadata', 304 'name': 'action_metadata', 305 'action': 'cpsdocument_metadata', 306 'condition': "python:'Manager' in member.getRoles()", 307 'permissions': (UniversityManage,)}, 277 308 ) 278 309 } … … 300 331 'cps_section_wf': 'waeup_section_wf', 301 332 'use_content_status_history': 0, 302 'actions _add': (333 'actions': ( 303 334 {'id': 'view', 304 335 'name': 'action_view', … … 340 371 'cps_section_wf': 'waeup_section_wf', 341 372 'use_content_status_history': 0, 342 'actions _add': (373 'actions': ( 343 374 {'id': 'view', 344 375 'name': 'action_view', … … 380 411 'cps_section_wf': 'waeup_section_wf', 381 412 'use_content_status_history': 0, 382 'actions _add': (413 'actions': ( 383 414 {'id': 'view', 384 415 'name': 'action_view', -
waeup_product/trunk/skins/waeup_default/portlet_main_navigation.pt
r84 r89 4 4 folder_id python:str(user)" 5 5 > 6 <tal:block condition="python: 'Students' in user.getGroups()">6 <tal:block condition="python: 0 and 'Students' in user.getGroups()"> 7 7 <a href="" i18n:translate="" 8 8 tal:attributes="href string:${here/portal_url}/sections/waeup/students/${folder_id}" 9 9 tal:content="string: Personal area for JAMB Registration ${folder_id}"></a> 10 10 </tal:block> 11 <tal:block condition="python: 'StudentManager' in user.getGroups()">11 <tal:block condition="python: 1"> 12 12 <a href="" i18n:translate="" 13 13 tal:attributes="href string:${here/portal_url}/sections/waeup/students" -
waeup_product/trunk/skins/waeup_default/university_view.py
r87 r89 6 6 7 7 member = context.portal_membership.getAuthenticatedMember() 8 #return context.folder_view() 8 9 9 if member: 10 10 if 'Manager' in member.getRoles(): 11 11 return context.folder_view() 12 elif 'Students' in member.getGroups(): 13 return context.students.students_folder_view_student(psm=psm,groups=groups) 14 elif 'StudentManager' in member.getGroups(): 15 return context.waeup_view_manager(psm=psm,groups=groups) 16 return context.students.students_folder_view_anon(psm=psm,groups=groups) 12 return context.university_view_all(psm=psm)
Note: See TracChangeset for help on using the changeset viewer.