Ignore:
Timestamp:
20 Nov 2006, 07:33:16 (18 years ago)
Author:
Henrik Bettermann
Message:

srp_manager_view and campus_manager_view renamed

Location:
WAeUP_SRP/trunk/skins/waeup_default
Files:
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_default/campus_index.py

    r805 r901  
    2222campus = context.portal_catalog(meta_type = "University")[-1].getObject()
    2323
    24 if context.isManager():
    25     return redirect("%s/campus_manager_view" % campus.absolute_url())
    26 
    2724if context.isStudent():
    2825    return redirect("%s/students_index" % campus.students.absolute_url())
     26else:
     27    return redirect("%s/campus_view" % campus.absolute_url())
    2928
  • WAeUP_SRP/trunk/skins/waeup_default/index_html.py

    r805 r901  
    1919if pm.isAnonymousUser():
    2020    return redirect("%s/srp_anonymous_view" % request.get('URL1'))
     21elif context.isStudent():
     22    return redirect("%s/srp_anonymous_view" % context.absolute_url())
     23else:
     24        return redirect("%s/srp_view" % context.absolute_url())
    2125
    22 if context.isManager():
    23     return redirect("%s/srp_manager_view" % context.absolute_url())
    24 
    25 if context.isStudent():
    26     return redirect("%s/srp_anonymous_view" % context.absolute_url())
    27 
Note: See TracChangeset for help on using the changeset viewer.