Changeset 89 for waeup_product/trunk/skins/waeup_student
- Timestamp:
- 26 Oct 2005, 11:54:25 (19 years ago)
- Location:
- waeup_product/trunk/skins/waeup_student
- Files:
-
- 5 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/skins/waeup_student/create_jamb.py
r57 r89 52 52 noCPSMember = False 53 53 try: 54 pr.addMember(s_id, 'UnSeT',roles=('Member','CPSMember' ))54 pr.addMember(s_id, 'UnSeT',roles=('Member','CPSMember','Student')) 55 55 except: 56 56 noCPSMember = True 57 57 if noCPSMember: 58 58 pr.addMember(s_id, 'UnSeT',roles=('Member',)) 59 groups = context.portal_directories.groups60 gm = list(groups.getEntry('Students')['members'])61 gm.extend((s_id,))62 groups.editEntry({'group': 'Students',63 'members': gm})59 ## groups = context.portal_directories.groups 60 ## gm = list(groups.getEntry('Students')['members']) 61 ## gm.extend((s_id,)) 62 ## groups.editEntry({'group': 'Students', 63 ## 'members': gm}) 64 64 return context.students_folder_view_manager(psm=psm) 65 65 ## return context.create_jamb_form(rendered = res, -
waeup_product/trunk/skins/waeup_student/jamb_index_html.py
r66 r89 7 7 8 8 #return context.student_view_manager() 9 if 'StudentManager' in member.getGroups(): 10 return context.jamb_view_manager() 11 elif 'Students' in member.getGroups(): 12 return context.jamb_view_student() 9 if member: 10 roles = member.getRoles() 11 if 'Manager' in roles: 12 return context.cpsdocument_view() 13 elif 'StudentManager' in roles: 14 return context.jamb_view_manager() 15 return context.jamb_view_student() -
waeup_product/trunk/skins/waeup_student/student_index_html.py
r79 r89 8 8 #return context.student_view_manager() 9 9 if member: 10 if 'Manager' in member.getRoles(): 10 roles = member.getRoles() 11 if 'Manager' in roles: 11 12 return context.folder_view() 12 elif 'StudentManager' in member.getGroups():13 elif 'StudentManager' in roles: 13 14 return context.student_view_manager() 14 elif 'Students' in member.getGroups(): 15 return context.student_view_student() 15 return context.student_view_student() -
waeup_product/trunk/skins/waeup_student/student_personal_index_html.py
r67 r89 7 7 8 8 #return context.student_view_manager() 9 if 'StudentManager' in member.getGroups(): 10 return context.student_personal_view_manager() 11 elif 'Students' in member.getGroups(): 12 return context.student_personal_view_student() 9 if member: 10 roles = member.getRoles() 11 if 'Manager' in roles: 12 return context.cpsdocument_view() 13 elif 'StudentManager' in roles: 14 return context.student_personal_view_manager() 15 return context.student_personal_view_student() -
waeup_product/trunk/skins/waeup_student/students_folder_view.py
r88 r89 9 9 member = context.portal_membership.getAuthenticatedMember() 10 10 if member: 11 if 'Manager' in member.getRoles(): 11 roles = member.getRoles() 12 if 'Manager' in roles: 12 13 return context.folder_view() 14 elif 'StudentManager' in roles: 15 return context.students_folder_view_manager(psm=psm) 16 elif 'Student' in roles: 17 return context.students_folder_view_student(psm=psm) 13 18 return context.students_folder_view_all(psm=psm)
Note: See TracChangeset for help on using the changeset viewer.