Changeset 1514
- Timestamp:
- 2 Mar 2007, 23:26:27 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_academics/getLevelInfo.py
r913 r1514 23 23 p = 1 24 24 info = {} 25 pt = request.get('PATH_ TRANSLATED').split('/')25 pt = request.get('PATH_INFO').split('/') 26 26 27 27 dep_id = pt[-(3+p)] -
WAeUP_SRP/trunk/skins/waeup_student/getStudentId.py
r1075 r1514 13 13 """ 14 14 15 ptls = context.REQUEST.get('PATH_ TRANSLATED')15 ptls = context.REQUEST.get('PATH_INFO') 16 16 start = ptls.find('/students/') 17 17 if start < -1: … … 25 25 return None 26 26 27 ptl = context.REQUEST.get('PATH_TRANSLATED').split('/')28 try:29 id_index = ptl.index('students')30 except:31 return None32 if len(ptl) <= id_index + 1:33 return None34 student_id = ptl[id_index +1]35 if len(student_id) != 7:36 return None
Note: See TracChangeset for help on using the changeset viewer.