Ignore:
Timestamp:
4 Jun 2007, 10:23:30 (17 years ago)
Author:
Henrik Bettermann
Message:

PIN search results showed wrong link

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_pins/search_pins.py

    r1797 r1853  
    6060            item['pin'] = pin
    6161        else:
    62             if str(member) in ('henrik','joachim'):
     62            if str(member) in ('admin','joachim'):
    6363                item['pin'] = "%s" % (pin,)
    6464            else:
    6565                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:
    6767            #res = context.portal_catalog(SearchableText=sno,portal_type='StudentApplication')
    6868            res = context.students_catalog(jamb_reg_no=sno.upper())
     
    7171                    item['student_url'] = None
    7272                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)
    7474                item['student_id'] = res[0].id
    7575            else:
     
    146146info['used'] = set_used_pins(items,from_cat=True)
    147147
    148    
    149    
     148
     149
    150150return view(rendered = rend,
    151151            psm = psm,
Note: See TracChangeset for help on using the changeset viewer.