Changeset 89 for waeup_product/trunk/skins/waeup_faculty
- Timestamp:
- 26 Oct 2005, 11:54:25 (19 years ago)
- Location:
- waeup_product/trunk/skins/waeup_faculty
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/skins/waeup_faculty/course_index_html.py
r80 r89 5 5 """Default view for the Student.""" 6 6 member = context.portal_membership.getAuthenticatedMember() 7 if member: 8 roles = member.getRoles() 9 if 'Manager' in roles: 10 return context.cpsdocument_view() 11 elif 'StudentManager' in roles: 12 return context.course_view_manager() 13 return context.course_view_student() 7 14 8 #return context.student_view_manager()9 if member:10 if 'Manager' in member.getRoles():11 return context.cpsdocument_view()12 elif 'StudentManager' in member.getGroups():13 return context.course_view_manager()14 elif 'Students' in member.getGroups():15 return context.course_view_student() -
waeup_product/trunk/skins/waeup_faculty/department_index_html.py
r84 r89 5 5 """Default view for a Faculty.""" 6 6 member = context.portal_membership.getAuthenticatedMember() 7 8 #return context.student_view_manager()9 7 if member: 10 if 'StudentManager' in member.getGroups(): 11 #if 'Manager' in member.getRoles(): 8 roles = member.getRoles() 9 if 'Manager' in roles: 10 return context.folder_view() 11 elif 'StudentManager' in roles: 12 12 return context.department_view_manager() 13 elif 'Students' in member.getGroups(): 14 return context.department_view_student() 13 return context.department_view_student() -
waeup_product/trunk/skins/waeup_faculty/department_index_html.py~
r84 r89 1 1 ##parameters=post_id=None, REQUEST=None 2 2 3 # $Id: department_index_html.py 8 0 2005-10-22 13:43:45Z joachim $3 # $Id: department_index_html.py 84 2005-10-25 16:18:40Z joachim $ 4 4 5 5 """Default view for a Faculty.""" … … 8 8 #return context.student_view_manager() 9 9 if member: 10 if 'Manager' in member.getRoles(): 10 if 'StudentManager' in member.getGroups(): 11 #if 'Manager' in member.getRoles(): 11 12 return context.department_view_manager() 12 13 elif 'Students' in member.getGroups(): -
waeup_product/trunk/skins/waeup_faculty/faculty_index_html.py
r84 r89 6 6 member = context.portal_membership.getAuthenticatedMember() 7 7 8 #return context.student_view_manager() 9 #if 'Manager' in member.getRoles(): 10 if 'StudentManager' in member.getGroups(): 11 return context.faculty_view_manager() 12 elif 'Students' in member.getGroups(): 13 return context.faculty_view_student() 8 member = context.portal_membership.getAuthenticatedMember() 9 if member: 10 roles = member.getRoles() 11 if 'Manager' in roles: 12 return context.folder_view() 13 elif 'StudentManager' in roles: 14 return context.faculty_view_manager() 15 return context.faculty_view_student()
Note: See TracChangeset for help on using the changeset viewer.