Changeset 2140 for WAeUP_SRP/trunk/skins/waeup_pins
- Timestamp:
- 21 Aug 2007, 16:02:50 (17 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_pins
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_pins/batch_view.pt
r1540 r2140 37 37 <a tal:condition="pin/student_url" href="" tal:content="pin/student" 38 38 tal:attributes="href pin/student_url"></a> 39 <span tal:condition=" not: pin/student_url" tal:content="pin/student" />39 <span tal:condition="python: not pin['student_url'] and not pin['student'].startswith('disabled')" tal:content="pin/student" /> 40 40 </td> 41 41 </tr> -
WAeUP_SRP/trunk/skins/waeup_pins/pins_view.pt
r1064 r2140 25 25 <td tal:content="pin/pin" /> 26 26 <td tal:content="pin/student_id" /> 27 <td tal:condition="pin/student_url">27 <td> 28 28 <a tal:condition="pin/student_url" href="" tal:content="pin/student" 29 29 tal:attributes="href pin/student_url"></a> 30 <span tal:condition=" not: pin/student_url" tal:content="pin/student" />30 <span tal:condition="python: not pin['student_url'] and not pin['student'].startswith('disabled')" tal:content="pin/student" /> 31 31 </td> 32 32 </tr> -
WAeUP_SRP/trunk/skins/waeup_pins/search_pins.py
r1853 r2140 64 64 else: 65 65 item['pin'] = "%s%s****%s" % (i.prefix_batch,pin[-10:-7],pin[-3:]) 66 if len(sno)==10 or '/' in sno: 66 67 if sno.startswith('disabled'): 68 item['student_url'] = None 69 item['student_id'] = sno 70 elif len(sno)==10 or '/' in sno: 67 71 #res = context.portal_catalog(SearchableText=sno,portal_type='StudentApplication') 68 72 res = context.students_catalog(jamb_reg_no=sno.upper()) 69 73 if len(res) > 0: 70 if sno.startswith('disabled'): 71 item['student_url'] = None 72 else: 73 item['student_url'] = "%s/campus/students/%s/application" % (context.portal_url(),res[0].id) 74 item['student_url'] = "%s/campus/students/%s/application" % (context.portal_url(),res[0].id) 74 75 item['student_id'] = res[0].id 75 76 else: … … 77 78 item['student_id'] = '' 78 79 elif sno: 79 if sno.startswith('disabled'): 80 item['student_url'] = None 81 item['student_id'] = '' 82 else: 83 item['student_url'] = '%s/campus/students/%s' % (context.portal_url(),item['student']) 84 item['student_id'] = item['student'] 80 item['student_url'] = '%s/campus/students/%s' % (context.portal_url(),item['student']) 81 item['student_id'] = item['student'] 85 82 else: 86 83 item['student_url'] = ''
Note: See TracChangeset for help on using the changeset viewer.