- Timestamp:
- 23 Nov 2007, 13:32:27 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_student/getStudentFolderInfo.py
r2730 r2745 12 12 return Info about the current Student 13 13 """ 14 import DateTime 14 15 request = context.REQUEST 15 16 form = request.form … … 82 83 'PaymentsFolder': 'payments_view', 83 84 } 85 #logger.info("before search") 86 starttime = DateTime.DateTime().timeTime() 84 87 sos = context.portal_catalog(container_path=student_path_root) 88 logger.info("searchtime %f" % (DateTime.DateTime().timeTime() - starttime)) 89 starttime = DateTime.DateTime().timeTime() 85 90 for so in sos: 86 91 row = {} … … 101 106 so.portal_type == 'StudentStudyCourse' 102 107 items.append(row) 108 logger.info("listtime %f" % (DateTime.DateTime().timeTime() - starttime)) 103 109 items.sort(cmp=lambda x,y: cmp( x['title'],y['title'])) 104 110 info['items'] = items
Note: See TracChangeset for help on using the changeset viewer.