Changeset 681


Ignore:
Timestamp:
13 Oct 2006, 06:43:39 (18 years ago)
Author:
Henrik Bettermann
Message:

academics_contents no longer used

Location:
WAeUP_SRP/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Students.py

    r658 r681  
    285285                tr_count = 0
    286286            tr_count += 1
    287         return self.students.academics_contents()
     287        return self.REQUEST.RESPONSE.redirect("%s" % self.REQUEST.get('URL1'))
    288288
    289289###)
  • WAeUP_SRP/trunk/skins/waeup_academics/academics_index.py

    r653 r681  
    1818
    1919if pm.isAnonymousUser():
    20     return redirect("%s/academics_contents" % context.absolute_url())
    21 
    22 campus = context.portal_catalog(meta_type = "University")[-1].getObject()
    23 
    24 if context.isManager() or context.isStudent():
     20    return redirect("%s/srp_anonymous_view" % context.portal_url())
     21else:
    2522    if context.portal_type == 'AcademicsFolder':
    2623        return context.academics.academics_view()
     
    3734    elif context.portal_type in ('CertificateCourse','Course'):
    3835        return context.academics_document_view()
    39     return redirect("%s/academics_contents" % context.absolute_url())
    40 else:
    41     return redirect("%s/academics_contents" % context.absolute_url())
     36    return redirect("%s/srp_manager_view" % context.portal_url())
    4237
  • WAeUP_SRP/trunk/skins/waeup_accommodation/acco_folder_index.py

    r649 r681  
    1717pm = context.portal_membership
    1818
    19 if pm.isAnonymousUser():
    20     return redirect("%s/academics_contents" % context.absolute_url())
    21 
    2219campus = context.portal_catalog(meta_type = "University")[-1].getObject()
    2320
     
    2724    elif context.portal_type == 'AccoHall':
    2825        return context.acco_hall_view()
    29     return redirect("%s/academics_contents" % context.absolute_url())
     26    return redirect("%s/srp_manager_view" % context.portal_url())
    3027else:
    31     return redirect("%s/academics_contents" % context.absolute_url())
     28    return redirect("%s/srp_anonymous_view" % context.portal_url())
    3229
  • WAeUP_SRP/trunk/skins/waeup_default/id_rename.py

    r586 r681  
    1111if context.portal_type in ('CoursesFolder',):
    1212    return REQUEST.RESPONSE.redirect(context.absolute_url() + \
    13                                 ('/academics_contents?portal_status_message=%s' \
     13                                ('/academics_index?portal_status_message=%s' \
    1414                                % ('Courses cannot be renamed',)))
    15    
     15
    1616new_ids = REQUEST['new_ids']
    1717new_ids = [id.upper() for id in REQUEST['new_ids']]
     
    2020if context.portal_type == "University":
    2121    here = context.academics
    22    
    2322
    24 here.manage_renameObjects(REQUEST['ids'], new_ids, REQUEST)
     23
     24here.manage_renameObjects(REQUEST['ids'], new_ids, REQUEST)
    2525
    2626return REQUEST.RESPONSE.redirect(here.absolute_url() + \
  • WAeUP_SRP/trunk/skins/waeup_student/student_index.py

    r659 r681  
    1919if pm.isAnonymousUser():
    2020    return redirect("%s/srp_anonymous_view" % context.absolute_url())
    21 
    2221if context.isManager():
    2322    return redirect("%s/student_view" % context.absolute_url())
  • WAeUP_SRP/trunk/skins/waeup_student/students_index.py

    r655 r681  
    1818
    1919if pm.isAnonymousUser():
    20     return redirect("%s/srp_anonymous_view" % context.absolute_url())
     20    return redirect("%s/srp_anonymous_view" % context.portal_url())
    2121
    2222campus = context.portal_catalog(meta_type = "University")[-1].getObject()
Note: See TracChangeset for help on using the changeset viewer.