Changeset 90 for waeup_product/trunk/skins/waeup_default
- Timestamp:
- 26 Oct 2005, 12:21:25 (19 years ago)
- Location:
- waeup_product/trunk/skins/waeup_default
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/skins/waeup_default/getWAeUPTypes.py
r89 r90 32 32 'name': 'action_view', 33 33 'action': 'university_view', 34 'condition': "python: 'Manager' in member.getRoles()",34 'condition': "python:member and 'Manager' in member.getRoles()", 35 35 'permissions': (View,)}, 36 36 {'id': 'addFaculty', … … 41 41 'name': 'action_folder_contents', 42 42 'action': 'folder_contents', 43 'condition': "python: 'Manager' in member.getRoles()",43 'condition': "python:member and 'Manager' in member.getRoles()", 44 44 'permissions': (ModifyPortalContent,UniversityManage,)}, 45 45 {'id': 'edit', 46 46 'name': 'action_edit', 47 47 'action': 'cpsdocument_edit_form', 48 #'action': 'cpsdocument_edit_form', 49 'condition': "python:'Manager' in member.getRoles()", 48 'condition': "python:member and 'Manager' in member.getRoles()", 50 49 'permissions': (ModifyPortalContent,UniversityManage,)}, 51 50 {'id': 'metadata', 52 51 'name': 'action_metadata', 53 52 'action': 'cpsdocument_metadata', 54 'condition': "python: 'Manager' in member.getRoles()",53 'condition': "python:member and 'Manager' in member.getRoles()", 55 54 'permissions': (ModifyPortalContent,)}, 56 55 {'id': 'localroles', … … 92 91 'name' : 'Add Content', 93 92 'action' : 'string:${object/absolute_url}/folder_factories', 94 'condition': "python:'Manager' in member.getRoles()",93 'condition': "python:member and 'Manager' in member.getRoles()", 95 94 'permissions': (StudentManage,)}, 96 95 { … … 152 151 'name': 'action_metadata', 153 152 'action': 'cpsdocument_metadata', 154 'condition': "python: 'Manager' in member.getRoles()",153 'condition': "python:member and 'Manager' in member.getRoles()", 155 154 'permissions': (UniversityManage,)}, 156 155 ) … … 251 250 'name' : 'Add Content', 252 251 'action' : 'string:${object/absolute_url}/folder_factories', 253 'condition': "python: 'Manager' in member.getRoles()",252 'condition': "python:member and 'Manager' in member.getRoles()", 254 253 'permissions': (StudentManage,)}, 255 254 {'id': 'metadata', … … 304 303 'name': 'action_metadata', 305 304 'action': 'cpsdocument_metadata', 306 'condition': "python: 'Manager' in member.getRoles()",305 'condition': "python:member and 'Manager' in member.getRoles()", 307 306 'permissions': (UniversityManage,)}, 308 307 ) -
waeup_product/trunk/skins/waeup_default/university_view.py
r89 r90 7 7 member = context.portal_membership.getAuthenticatedMember() 8 8 9 if member:9 if not context.portal_membership.isAnonymousUser: 10 10 if 'Manager' in member.getRoles(): 11 11 return context.folder_view()
Note: See TracChangeset for help on using the changeset viewer.