Changeset 2615 for WAeUP_SRP/base


Ignore:
Timestamp:
9 Nov 2007, 21:55:50 (17 years ago)
Author:
Henrik Bettermann
Message:

do not show link is student object does not exist

File:
1 edited

Legend:

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

    r2163 r2615  
    6464            else:
    6565                item['pin'] = "%s%s****%s" % (i.prefix_batch,pin[-10:-7],pin[-3:])
    66        
     66
    6767        if sno.startswith('disabled'):
    6868            item['student_url'] = None
     
    7777                item['student_url'] = None
    7878                item['student_id'] = ''
    79         elif sno:
     79        elif len(sno) == 7:
    8080            item['student_url'] = '%s/campus/students/%s' % (context.portal_url(),item['student'])
    8181            item['student_id'] = item['student']
Note: See TracChangeset for help on using the changeset viewer.