Changeset 1853 for WAeUP_SRP/trunk/skins


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

PIN search results showed wrong link

Location:
WAeUP_SRP/trunk/skins
Files:
4 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,
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_edit.py

    r1839 r1853  
    1 ## Script (Python) "clearance_edit"
     1z## Script (Python) "clearance_edit"
    22##bind container=container
    33##bind context=context
  • WAeUP_SRP/trunk/skins/waeup_student/delete_course_result.py

    r1613 r1853  
    55##bind script=script
    66##bind subpath=traverse_subpath
    7 ##parameters=ids=[], REQUEST=None, action_after_reject=None, action_after_validate=None
     7##parameters=ids=[], REQUEST=None, action_after_reject=None, action_after_validate=''
    88##title=
    99##
  • WAeUP_SRP/trunk/skins/waeup_student/validate_courses.py

    r1612 r1853  
    55##bind script=script
    66##bind subpath=traverse_subpath
    7 ##parameters=student=None, action_after_reject=None, action_after_validate=None
     7##parameters=student=None, action_after_reject=None, action_after_validate=''
    88##title=
    99##
Note: See TracChangeset for help on using the changeset viewer.