Changeset 2745 for WAeUP_SRP


Ignore:
Timestamp:
23 Nov 2007, 13:32:27 (17 years ago)
Author:
joachim
Message:

add timing info,

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_student/getStudentFolderInfo.py

    r2730 r2745  
    1212return Info about the current Student
    1313"""
     14import DateTime
    1415request = context.REQUEST
    1516form = request.form
     
    8283              'PaymentsFolder': 'payments_view',
    8384              }
     85#logger.info("before search")
     86starttime = DateTime.DateTime().timeTime()
    8487sos = context.portal_catalog(container_path=student_path_root)
     88logger.info("searchtime %f" % (DateTime.DateTime().timeTime() - starttime))
     89starttime = DateTime.DateTime().timeTime()
    8590for so in sos:
    8691    row = {}
     
    101106                    so.portal_type == 'StudentStudyCourse'
    102107    items.append(row)
     108logger.info("listtime %f" % (DateTime.DateTime().timeTime() - starttime))
    103109items.sort(cmp=lambda x,y: cmp( x['title'],y['title']))
    104110info['items'] = items
Note: See TracChangeset for help on using the changeset viewer.