Changeset 681
- Timestamp:
- 13 Oct 2006, 06:43:39 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Students.py
r658 r681 285 285 tr_count = 0 286 286 tr_count += 1 287 return self. students.academics_contents()287 return self.REQUEST.RESPONSE.redirect("%s" % self.REQUEST.get('URL1')) 288 288 289 289 ###) -
WAeUP_SRP/trunk/skins/waeup_academics/academics_index.py
r653 r681 18 18 19 19 if 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()) 21 else: 25 22 if context.portal_type == 'AcademicsFolder': 26 23 return context.academics.academics_view() … … 37 34 elif context.portal_type in ('CertificateCourse','Course'): 38 35 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()) 42 37 -
WAeUP_SRP/trunk/skins/waeup_accommodation/acco_folder_index.py
r649 r681 17 17 pm = context.portal_membership 18 18 19 if pm.isAnonymousUser():20 return redirect("%s/academics_contents" % context.absolute_url())21 22 19 campus = context.portal_catalog(meta_type = "University")[-1].getObject() 23 20 … … 27 24 elif context.portal_type == 'AccoHall': 28 25 return context.acco_hall_view() 29 return redirect("%s/ academics_contents" % context.absolute_url())26 return redirect("%s/srp_manager_view" % context.portal_url()) 30 27 else: 31 return redirect("%s/ academics_contents" % context.absolute_url())28 return redirect("%s/srp_anonymous_view" % context.portal_url()) 32 29 -
WAeUP_SRP/trunk/skins/waeup_default/id_rename.py
r586 r681 11 11 if context.portal_type in ('CoursesFolder',): 12 12 return REQUEST.RESPONSE.redirect(context.absolute_url() + \ 13 ('/academics_ contents?portal_status_message=%s' \13 ('/academics_index?portal_status_message=%s' \ 14 14 % ('Courses cannot be renamed',))) 15 15 16 16 new_ids = REQUEST['new_ids'] 17 17 new_ids = [id.upper() for id in REQUEST['new_ids']] … … 20 20 if context.portal_type == "University": 21 21 here = context.academics 22 23 22 24 here.manage_renameObjects(REQUEST['ids'], new_ids, REQUEST) 23 24 here.manage_renameObjects(REQUEST['ids'], new_ids, REQUEST) 25 25 26 26 return REQUEST.RESPONSE.redirect(here.absolute_url() + \ -
WAeUP_SRP/trunk/skins/waeup_student/student_index.py
r659 r681 19 19 if pm.isAnonymousUser(): 20 20 return redirect("%s/srp_anonymous_view" % context.absolute_url()) 21 22 21 if context.isManager(): 23 22 return redirect("%s/student_view" % context.absolute_url()) -
WAeUP_SRP/trunk/skins/waeup_student/students_index.py
r655 r681 18 18 19 19 if pm.isAnonymousUser(): 20 return redirect("%s/srp_anonymous_view" % context. absolute_url())20 return redirect("%s/srp_anonymous_view" % context.portal_url()) 21 21 22 22 campus = context.portal_catalog(meta_type = "University")[-1].getObject()
Note: See TracChangeset for help on using the changeset viewer.