Ignore:
Timestamp:
15 Dec 2006, 17:43:18 (18 years ago)
Author:
joachim
Message:

a lot of optimizations

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
1 added
2 edited

Legend:

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

    r1025 r1067  
    1313"""
    1414ptl = context.REQUEST.get('PATH_TRANSLATED').split('/')
    15 id_index = ptl.index('students')
     15try:
     16    id_index = ptl.index('students')
     17except:
     18    return None
    1619if len(ptl) > id_index + 2:
    1720    return ptl[id_index + 1]
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py

    r1048 r1067  
    114114    info['pume'] = None
    115115
     116if not with_items:
     117    return info
     118
    116119items = []
    117120s_edit_links = {'StudentApplication': 'application_edit_form',
     
    127130              'StudentPume': 'pume_view',
    128131              }
    129 if not with_items:
    130     return info
    131132sos = context.portal_catalog(container_path=student_path)
    132133for so in sos:
Note: See TracChangeset for help on using the changeset viewer.