Ignore:
Timestamp:
2 Mar 2007, 23:26:27 (18 years ago)
Author:
Henrik Bettermann
Message:

make work on Windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentId.py

    r1075 r1514  
    1313"""
    1414
    15 ptls = context.REQUEST.get('PATH_TRANSLATED')
     15ptls = context.REQUEST.get('PATH_INFO')
    1616start = ptls.find('/students/')
    1717if start < -1:
     
    2525    return None
    2626
    27 ptl = context.REQUEST.get('PATH_TRANSLATED').split('/')
    28 try:
    29     id_index = ptl.index('students')
    30 except:
    31     return None
    32 if len(ptl) <= id_index + 1:
    33     return None
    34 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.