Changeset 2140
- Timestamp:
- 21 Aug 2007, 16:02:50 (17 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/profiles/default/layouts/application.xml
r2139 r2140 337 337 </property> 338 338 <property name="hidden_readonly_layout_modes"/> 339 <property name="size_max">20 000</property>339 <property name="size_max">20480</property> 340 340 <property name="display_external_editor">False</property> 341 341 <property name="display_width">100</property> -
WAeUP_SRP/trunk/profiles/default/layouts/student_firsttime_login.xml
r1958 r2140 34 34 </property> 35 35 <property name="hidden_readonly_layout_modes"/> 36 <property name="display_width">1 0</property>37 <property name="size_max">1 0</property>36 <property name="display_width">13</property> 37 <property name="size_max">13</property> 38 38 <property name="catalog">returning_import</property> 39 39 <property name="reference">student</property> -
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.