Ignore:
Timestamp:
26 Oct 2005, 08:39:01 (19 years ago)
Author:
joachim
Message:

=fixes

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  
    99
    1010if 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())
    2015       
    2116member_id = str(member)
  • waeup_product/trunk/skins/waeup_student/students_folder_view.py

    r68 r88  
    99member = context.portal_membership.getAuthenticatedMember()
    1010if 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()
     13return context.students_folder_view_all(psm=psm)
Note: See TracChangeset for help on using the changeset viewer.