Changeset 1536 for WAeUP_SRP/trunk
- Timestamp:
- 10 Mar 2007, 18:52:25 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_accommodation/release_bed.py
r1460 r1536 44 44 acco_cat.modifyRecord(bed=allocated_bed.bed,student='') 45 45 acco_doc = context.getContent() 46 acco_doc.edit(mapping={'bed':"-- cancelled by %s --" % member}) 46 acco_doc.edit(mapping={'bed':"-- cancelled by section officer --"}) 47 logger.info('"%s", "released bed of", "%s"' % (member_id,student_id)) 47 48 redirect("%s" % (context.absolute_url())) 48 49 -
WAeUP_SRP/trunk/skins/waeup_student/getRetStudentStatistics.py
r1530 r1536 42 42 dep['id'] = fid 43 43 fquery = Eq('faculty',fid) 44 fac_res = aq_students(fquery)45 fac_ids = [r.id for r in fac_res]46 total = float(len( fac_res))44 stud_res = aq_students(fquery) 45 stud_ids = [r.id for r in stud_res] 46 total = float(len(stud_res)) 47 47 48 48 if total == 0: 49 49 continue 50 50 51 ret = len([s for s in fac_ids if s in ret_ids])51 ret = len([s for s in stud_ids if s in ret_ids]) 52 52 dep['returned'] = ret 53 53 sum += ret
Note: See TracChangeset for help on using the changeset viewer.