Changeset 603 for WAeUP_SRP/trunk/skins/waeup_academics/getDocumentInfo.py
- Timestamp:
- 1 Oct 2006, 10:21:09 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_academics/getDocumentInfo.py
r556 r603 15 15 16 16 wf = context.portal_workflow 17 mtool = context.portal_membership18 member = mtool.getAuthenticatedMember()19 17 path_info = request.get('PATH_INFO').split('/') 20 18 21 19 info = {} 22 member_id = str(member) 23 roles = member.getRoles() 24 info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles 25 info['is_student'] = 'Student' in roles 20 info['is_manager'] = context.isManager 21 info['is_student'] = context.isStudent 26 22 info['doc'] = context.getContent() 27 23 return info
Note: See TracChangeset for help on using the changeset viewer.