Changeset 2831


Ignore:
Timestamp:
30 Nov 2007, 11:46:03 (17 years ago)
Author:
Henrik Bettermann
Message:

disable time logging (in custom)

File:
1 edited

Legend:

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

    r2806 r2831  
    6060if student_record is None:
    6161    return None
    62    
     62
    6363#from Products.zdb import set_trace;set_trace()
    6464for field in context.students_catalog.schema():
     
    7777       info['session'] = True
    7878
    79 info['base_info'] = context.getFormattedStudentEntry(student_record) 
     79info['base_info'] = context.getFormattedStudentEntry(student_record)
    8080
    8181info['id'] = student_id
     
    9494              }
    9595#logger.info("before search")
    96 starttime = DateTime.DateTime().timeTime()
     96#starttime = DateTime.DateTime().timeTime()
    9797#sos = context.portal_catalog(container_path=student_path_root)
    9898# query = Eq('container_path',student_path_root)
     
    118118#                     so.portal_type == 'StudentStudyCourse'
    119119#     items.append(row)
    120 starttime = DateTime.DateTime().timeTime()
    121120#sos = context.portal_catalog(container_path=student_path_root)
    122121student_obj = getattr(students_folder,student_id)
    123122subobjects = student_obj.objectValues()
    124 logger.info("searchtime %f" % (DateTime.DateTime().timeTime() - starttime))
    125 starttime = DateTime.DateTime().timeTime()
     123#logger.info("searchtime %f" % (DateTime.DateTime().timeTime() - starttime))
     124#starttime = DateTime.DateTime().timeTime()
    126125for subobject in subobjects:
    127126    row = {}
     
    142141                    subobject.portal_type == 'StudentStudyCourse'
    143142    items.append(row)
    144 logger.info("listtime %f" % (DateTime.DateTime().timeTime() - starttime))
     143#logger.info("listtime %f" % (DateTime.DateTime().timeTime() - starttime))
    145144items.sort(cmp=lambda x,y: cmp( x['title'],y['title']))
    146145info['items'] = items
Note: See TracChangeset for help on using the changeset viewer.