Ignore:
Timestamp:
26 Oct 2005, 11:54:25 (19 years ago)
Author:
joachim
Message:

=make workflows work

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  
    55"""Default view for the Student."""
    66member = context.portal_membership.getAuthenticatedMember()
     7if 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()
     13return context.course_view_student()
    714
    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  
    55"""Default view for a Faculty."""
    66member = context.portal_membership.getAuthenticatedMember()
    7 
    8 #return context.student_view_manager()
    97if 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:
    1212        return context.department_view_manager()
    13     elif 'Students' in member.getGroups():
    14         return context.department_view_student()
     13return context.department_view_student()
  • waeup_product/trunk/skins/waeup_faculty/department_index_html.py~

    r84 r89  
    11##parameters=post_id=None, REQUEST=None
    22
    3 # $Id: department_index_html.py 80 2005-10-22 13:43:45Z joachim $
     3# $Id: department_index_html.py 84 2005-10-25 16:18:40Z joachim $
    44
    55"""Default view for a Faculty."""
     
    88#return context.student_view_manager()
    99if member:
    10     if 'Manager' in member.getRoles():
     10    if 'StudentManager' in member.getGroups():
     11    #if 'Manager' in member.getRoles():
    1112        return context.department_view_manager()
    1213    elif 'Students' in member.getGroups():
  • waeup_product/trunk/skins/waeup_faculty/faculty_index_html.py

    r84 r89  
    66member = context.portal_membership.getAuthenticatedMember()
    77
    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()
     8member = context.portal_membership.getAuthenticatedMember()
     9if 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()
     15return context.faculty_view_student()
Note: See TracChangeset for help on using the changeset viewer.