Ignore:
Timestamp:
20 Feb 2007, 19:51:55 (18 years ago)
Author:
Henrik Bettermann
Message:

prepared for import of dummy results

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/display_session_results.py

    r1183 r1448  
    6363    if with_courses_cat:
    6464        res = context.courses_catalog(code = r.CosCode)
    65     if with_courses_cat and res:
     65    if r.CosCode == 'N/A':
     66        result['title'] = 'N/A'
     67    elif with_courses_cat and res:
    6668        result['title'] = res[0].title
    6769    else:
  • WAeUP_SRP/trunk/skins/waeup_student/getMemberInfo.py

    r1316 r1448  
    8787    info['review_state'] = wf.getInfoFor(student,'review_state',None)
    8888    info['password'] = context.waeup_tool.getCredential(student_id)
    89     info['email'] = 'na'
     89    info['email'] = 'N/A'
    9090
    9191    msg="""
     
    100100
    101101    info['message'] = msg % (
    102         'na',
     102        'N/A',
    103103        student_id,
    104104        info['password']
  • WAeUP_SRP/trunk/skins/waeup_student/getSessionResults.py

    r1429 r1448  
    4343res = scatalog(id = student_id)
    4444matric_no = res[0].matric_no
    45 student_from_cat = res[0] 
     45student_from_cat = res[0]
    4646
    4747res = returning(matric_no = matric_no)
     
    8383            result['gpa'] = 'ok'
    8484        except:
    85             result['gpa'] = 'na'
     85            result['gpa'] = 'N/A'
    8686    else:
    87         result['title'] = "na"
    88         result['credits'] = "na"
    89         result['gpa'] = 'na'
     87        result['title'] = ""
     88        result['credits'] = "N/A"
     89        result['gpa'] = 'N/A'
     90        result['WEIGHT'] = 'N/A'
     91        result['GRADE'] = 'N/A'
    9092    if r.Semester == '2':
    9193        sem2.append(result)
     
    102104        info['sex'] = 'M'
    103105    info['level'] = int(student_from_cat.level)-100
    104 else: 
    105     info['sex'] = 'na'
    106     info['level'] = 'na'
     106else:
     107    info['sex'] = 'N/A'
     108    info['level'] = 'N/A'
    107109
    108110info['verdict'] = verdict
  • WAeUP_SRP/trunk/skins/waeup_student/mail_password_form.pt

    r1369 r1448  
    6161          </td>
    6262        </tr>
    63         <tr tal:condition="python: info['email'] and info['email']!='na'">
     63        <tr tal:condition="python: info['email'] and info['email']!='N/A'">
    6464          <td>&nbsp;</td>
    6565          <td><input name="Submit" type="submit" class="standalone" value="Submit" /><br /><br /></td>
Note: See TracChangeset for help on using the changeset viewer.