Changeset 696 for WAeUP_SRP/trunk/skins
- Timestamp:
- 13 Oct 2006, 21:41:18 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_pins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_pins/batch_view.pt
r695 r696 34 34 <td tal:content="pin/serial" /> 35 35 <td tal:content="pin/pin" /> 36 <td tal:content="pin/student" /> 36 <td> 37 <a href="" tal:content="pin/student" 38 tal:attributes="href pin/student_url"></a> 39 </td> 37 40 </tr> 38 41 </table> -
WAeUP_SRP/trunk/skins/waeup_pins/getBatchInfo.py
r688 r696 19 19 else: 20 20 return None 21 info['batch_doc'] = batch.getContent() 21 bd = batch.getContent() 22 info['batch_doc'] = bd 22 23 info['id'] = batch.getId() 23 24 info['title'] = batch.Title or 'empty Title' 24 info['unused'],info['used'] = batch.getContent().getUnusedPins() 25 info['unused'],used = batch.getContent().getUnusedPins() 26 l = [] 27 students_rpath = context.portal_catalog(meta_type = "StudentsFolder")[-1].relative_path 28 students_url = "%s/%s" % (context.portal_url(),students_rpath) 29 30 for item in used: 31 if bd.prefix == "APP": 32 jno = item['student'] 33 item['student_url'] = "%s/%s" % (context.portal_url(), 34 context.portal_catalog(SearchableText=jno, 35 portal_type='StudentApplication')[0].relative_path 36 ) 37 else: 38 item['student_url'] = '%s/%s' % (students_url,item['student']) 39 info['used'] = used 25 40 return info
Note: See TracChangeset for help on using the changeset viewer.