Changeset 875 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 16 Nov 2006, 14:21:44 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/get_searchable_student_states.py
r874 r875 18 18 voc = context.portal_vocabularies.searchable_student_states 19 19 20 if key is None: 21 return voc.items() 22 return voc.get(key) 20 if key is not None: 21 return voc.get(key) 22 if "ClearanceOfficers" in member.getGroups(): 23 return [item for item in voc.items() if item[0].startswith('clear')] 24 return voc.items() 23 25 24 26 -
WAeUP_SRP/trunk/skins/waeup_student/isClearanceOfficer.py
r871 r875 5 5 ##bind script=script 6 6 ##bind subpath=traverse_subpath 7 ##parameters= 7 ##parameters=info=None 8 8 ##title= 9 9 ## … … 16 16 member = mtool.getAuthenticatedMember() 17 17 18 info = context.getStudentInfo() 18 if info is None: 19 info = context.getStudentInfo() 19 20 if info is None: 20 21 return False … … 28 29 roles = member.getRolesInContext(res[0].getObject()) 29 30 30 return "ClearanceOfficer" in roles or context.isManager31 return "ClearanceOfficer" in roles 31 32
Note: See TracChangeset for help on using the changeset viewer.