Changeset 1514


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

make work on Windows

Location:
WAeUP_SRP/trunk/skins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_academics/getLevelInfo.py

    r913 r1514  
    2323    p = 1
    2424info = {}
    25 pt = request.get('PATH_TRANSLATED').split('/')
     25pt = request.get('PATH_INFO').split('/')
    2626
    2727dep_id = pt[-(3+p)]
  • 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.