Ignore:
Timestamp:
15 Feb 2007, 14:18:08 (18 years ago)
Author:
Henrik Bettermann
Message:

empty matric_no catched

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

Legend:

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

    r1421 r1422  
    6666dict['password'] = password
    6767student_rec = context.getFormattedStudentEntry(context.students_catalog(id = sid)[0])
    68 psm = "Student with Id %s and Password %s created!" % (sid,password)
     68psm = "Student record with Id %s and Password %s has been created." % (sid,password)
    6969logger.info('"%s","created student","%s"' % (member,sid))
    7070return context.add_student_form(rendered = rendered,
  • WAeUP_SRP/trunk/skins/waeup_student/add_student_form.pt

    r1420 r1422  
    1313      </metal:block>
    1414      <metal:block fill-slot="main">
    15       <h3>Add Student Record!</h3>
    16       <br />
    1715        <span tal:condition="python: mode == 'view'" tal:omit-tag="">
     16        <h3>Notify Student of Authentication Data!</h3>
     17        <br />
    1818          <table>
    1919            <tr>
     
    6161        </span>
    6262        <span tal:condition="python: mode != 'view'" tal:omit-tag="">
     63        <h3>Add Student Record!</h3>
     64        <br />
    6365          <form action="" id="editForm" method="post"
    6466              enctype="multipart/form-data" class="workflow"
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentFolderInfo.py

    r1359 r1422  
    5555if res:
    5656    info['review_state'] = res[0].review_state
    57 res = context.results_import(matric_no = st_brain.matric_no)
    58 if res:
    59     info['session'] = True
    60 else:
    61     info['session'] = False
     57
     58info['session'] = False
     59if st_brain.matric_no
     60    res = context.results_import(matric_no = st_brain.matric_no)
     61    if res:
     62       info['session'] = True
     63   
    6264
    6365info['id'] = student_id
Note: See TracChangeset for help on using the changeset viewer.