Changeset 1163 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
31 Dec 2006, 10:22:20 (18 years ago)
Author:
Henrik Bettermann
Message:

index scripts slimmed down

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/set_access_data_form.pt

    r1160 r1163  
    1313      </metal:block>
    1414      <metal:block fill-slot="main">
    15         <h3>Enter Your Email Address and Choose a Password!</h3>
     15        <h3>Enter Your Authentication Details and Choose a Password!</h3>
    1616        <br />
    1717        <div tal:replace="structure rendered_main" />
  • WAeUP_SRP/trunk/skins/waeup_student/student_index.py

    r999 r1163  
    2929    return redirect("%s/waeup_document_view" % context.absolute_url())
    3030if context.isStudent():
    31     students = context.portal_url.getPortalObject().campus.students
    32     student = getattr(students,str(member))
    33     return redirect("%s/student_view" % student.absolute_url())
     31    students_url = "%s/campus/students" % (context.portal_url())
     32    id = str(member)
     33    return redirect("%s/%s/student_view" % (students_url, id))
    3434
    35 return redirect("%s/srp_anonymous_view" % context.absolute_url())
    36    
     35return redirect("%s/srp_anonymous_view" % context.portal_url())
     36
  • WAeUP_SRP/trunk/skins/waeup_student/students_index.py

    r1031 r1163  
    2121    return redirect("%s/srp_anonymous_view" % context.portal_url())
    2222
    23 students_url = "%s/campus/students" % (context.portal_url.getPortalPath())
     23students_url = "%s/campus/students" % (context.portal_url())
    2424
    2525if "ClearanceOfficers" in member.getGroups():
     
    2828    return redirect("%s/search_students" % students_url)
    2929if context.isStudent():
    30     info = context.getStudentInfo()
    31     student = info['student']
    32     return redirect("%s/student_view" % student.absolute_url())
     30    id = str(member)
     31    return redirect("%s/%s/student_view" % (students_url, id))
Note: See TracChangeset for help on using the changeset viewer.