Changeset 695 for WAeUP_SRP/trunk/skins
- Timestamp:
- 13 Oct 2006, 20:59:54 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 2 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_accommodation/acco_hall_view.pt
r659 r695 39 39 </tr> 40 40 <tr tal:repeat="bt reserved"> 41 <td tal:content="bt/student" /> 41 <td> 42 <a href="" tal:attributes="href bt/student_url" 43 tal:content="bt/student"></a> 44 </td> 42 45 <td tal:content="bt/bed" /> 43 46 </tr> -
WAeUP_SRP/trunk/skins/waeup_accommodation/getAccoHallInfo.py
r654 r695 39 39 info['bed_types'] = bt_list 40 40 res_list = [] 41 students_rpath = context.portal_catalog(meta_type = "StudentsFolder")[-1].relative_path 42 students_url = "%s/%s" % (context.portal_url(),students_rpath) 41 43 if reserved > 1: 42 44 for st in reserved: … … 44 46 res = pa(hall=context.getId(),student=st) 45 47 if res: 46 res_list.append({'student': st, 'bed': context.formatBed(res[0].bed) }) 48 res_list.append({'student': st, 49 'student_url': '%s/%s' % (students_url,st), 50 'bed': context.formatBed(res[0].bed) }) 47 51 info['reserved'] = res_list 48 52
Note: See TracChangeset for help on using the changeset viewer.