Changeset 1514 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 2 Mar 2007, 23:26:27 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.