Changeset 88 for waeup_product/trunk/skins/waeup_student
- Timestamp:
- 26 Oct 2005, 08:39:01 (19 years ago)
- Location:
- waeup_product/trunk/skins/waeup_student
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/skins/waeup_student/process_waeup_login.py
r80 r88 9 9 10 10 if request.form.get('submit') == 'Login': 11 waeup = context.portal_catalog(id = 'waeup')[0].getObject() 12 students = waeup.students 13 ca = context 14 if "StudentManager" in member.getGroups(): 15 ca = waeup.students 16 elif "Students" in member.getGroups(): 17 ca = getattr(students,str(member)) 18 #ma = ca[0].getObject() 19 return response.redirect(ca.absolute_url()) 11 waeup = context.portal_catalog(id = 'waeup')[0] 12 if "Manager" in member.getRoles(): 13 return 14 return response.redirect(waeup.getURL()) 20 15 21 16 member_id = str(member) -
waeup_product/trunk/skins/waeup_student/students_folder_view.py
r68 r88 9 9 member = context.portal_membership.getAuthenticatedMember() 10 10 if member: 11 if 'Students' in member.getGroups(): 12 return context.students_folder_view_students(psm=psm,groups=groups) 13 if 'StudentManager' in member.getGroups(): 14 return context.students_folder_view_manager(psm=psm,groups=groups) 15 return context.students_folder_view_anon(psm=psm,groups=groups) 11 if 'Manager' in member.getRoles(): 12 return context.folder_view() 13 return context.students_folder_view_all(psm=psm)
Note: See TracChangeset for help on using the changeset viewer.