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

=make anonymous work

Location:
waeup_product/trunk/skins
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • waeup_product/trunk/skins/waeup_faculty/course_index_html.py

    r89 r91  
    55"""Default view for the Student."""
    66member = context.portal_membership.getAuthenticatedMember()
    7 if member:
     7if not context.portal_membership.isAnonymousUser:
    88    roles = member.getRoles()
    99    if 'Manager' in roles:
  • waeup_product/trunk/skins/waeup_faculty/department_index_html.py

    r89 r91  
    55"""Default view for a Faculty."""
    66member = context.portal_membership.getAuthenticatedMember()
    7 if member:
     7if not context.portal_membership.isAnonymousUser:
    88    roles = member.getRoles()
    99    if 'Manager' in roles:
  • waeup_product/trunk/skins/waeup_faculty/department_index_html.py~

    r89 r91  
    11##parameters=post_id=None, REQUEST=None
    22
    3 # $Id: department_index_html.py 84 2005-10-25 16:18:40Z joachim $
     3# $Id: department_index_html.py 89 2005-10-26 11:54:25Z joachim $
    44
    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/faculty_index_html.py

    r89 r91  
    77
    88member = context.portal_membership.getAuthenticatedMember()
    9 if member:
     9if not context.portal_membership.isAnonymousUser:
    1010    roles = member.getRoles()
    1111    if 'Manager' in roles:
  • waeup_product/trunk/skins/waeup_student/jamb_index_html.py

    r89 r91  
    77
    88#return context.student_view_manager()
    9 if member:
     9if not context.portal_membership.isAnonymousUser:
    1010    roles = member.getRoles()
    1111    if 'Manager' in roles:
  • waeup_product/trunk/skins/waeup_student/student_index_html.py

    r89 r91  
    77
    88#return context.student_view_manager()
    9 if member:
     9if not context.portal_membership.isAnonymousUser:
    1010    roles = member.getRoles()
    1111    if 'Manager' in roles:
  • waeup_product/trunk/skins/waeup_student/student_personal_index_html.py

    r89 r91  
    77
    88#return context.student_view_manager()
    9 if member:
     9if not context.portal_membership.isAnonymousUser:
    1010    roles = member.getRoles()
    1111    if 'Manager' in roles:
  • waeup_product/trunk/skins/waeup_student/students_folder_view.py

    r89 r91  
    66will be displayed, otherwise first post will be displayed."""
    77
    8 
    98member = context.portal_membership.getAuthenticatedMember()
    10 if member:
     9if not context.portal_membership.isAnonymousUser:
    1110    roles = member.getRoles()
    1211    if 'Manager' in roles:
Note: See TracChangeset for help on using the changeset viewer.