- Timestamp:
- 18 Dec 2006, 10:01:29 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/getStudentId.py
r1071 r1075 13 13 """ 14 14 15 ptls = context.REQUEST.get('PATH_TRANSLATED') 16 start = ptls.find('/students/') 17 if start < -1: 18 return None 19 start += 10 20 student_id = ptls[start:start+7] 21 try: 22 int(student_id[1:]) 23 return student_id 24 except: 25 return None 26 15 27 ptl = context.REQUEST.get('PATH_TRANSLATED').split('/') 16 28 try: … … 23 35 if len(student_id) != 7: 24 36 return None 25 try:26 int(student_id[1:])27 return student_id28 except:29 return None
Note: See TracChangeset for help on using the changeset viewer.