Changeset 1853 for WAeUP_SRP/trunk/skins/waeup_pins
- Timestamp:
- 4 Jun 2007, 10:23:30 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_pins/search_pins.py
r1797 r1853 60 60 item['pin'] = pin 61 61 else: 62 if str(member) in (' henrik','joachim'):62 if str(member) in ('admin','joachim'): 63 63 item['pin'] = "%s" % (pin,) 64 64 else: 65 65 item['pin'] = "%s%s****%s" % (i.prefix_batch,pin[-10:-7],pin[-3:]) 66 if len(sno)==10 :66 if len(sno)==10 or '/' in sno: 67 67 #res = context.portal_catalog(SearchableText=sno,portal_type='StudentApplication') 68 68 res = context.students_catalog(jamb_reg_no=sno.upper()) … … 71 71 item['student_url'] = None 72 72 else: 73 item['student_url'] = "%s/campus/students/%s " % (context.portal_url(),res[0].id)73 item['student_url'] = "%s/campus/students/%s/application" % (context.portal_url(),res[0].id) 74 74 item['student_id'] = res[0].id 75 75 else: … … 146 146 info['used'] = set_used_pins(items,from_cat=True) 147 147 148 149 148 149 150 150 return view(rendered = rend, 151 151 psm = psm,
Note: See TracChangeset for help on using the changeset viewer.