- Timestamp:
- 30 Nov 2007, 11:46:03 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_student/getStudentFolderInfo.py
r2806 r2831 60 60 if student_record is None: 61 61 return None 62 62 63 63 #from Products.zdb import set_trace;set_trace() 64 64 for field in context.students_catalog.schema(): … … 77 77 info['session'] = True 78 78 79 info['base_info'] = context.getFormattedStudentEntry(student_record) 79 info['base_info'] = context.getFormattedStudentEntry(student_record) 80 80 81 81 info['id'] = student_id … … 94 94 } 95 95 #logger.info("before search") 96 starttime = DateTime.DateTime().timeTime()96 #starttime = DateTime.DateTime().timeTime() 97 97 #sos = context.portal_catalog(container_path=student_path_root) 98 98 # query = Eq('container_path',student_path_root) … … 118 118 # so.portal_type == 'StudentStudyCourse' 119 119 # items.append(row) 120 starttime = DateTime.DateTime().timeTime()121 120 #sos = context.portal_catalog(container_path=student_path_root) 122 121 student_obj = getattr(students_folder,student_id) 123 122 subobjects = 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() 126 125 for subobject in subobjects: 127 126 row = {} … … 142 141 subobject.portal_type == 'StudentStudyCourse' 143 142 items.append(row) 144 logger.info("listtime %f" % (DateTime.DateTime().timeTime() - starttime))143 #logger.info("listtime %f" % (DateTime.DateTime().timeTime() - starttime)) 145 144 items.sort(cmp=lambda x,y: cmp( x['title'],y['title'])) 146 145 info['items'] = items
Note: See TracChangeset for help on using the changeset viewer.