Changeset 1419 for WAeUP_SRP


Ignore:
Timestamp:
15 Feb 2007, 12:24:17 (18 years ago)
Author:
joachim
Message:

allow empty matric_no

File:
1 edited

Legend:

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

    r1418 r1419  
    4848    pass
    4949matric_no = ds.get('matric_no')
    50 res = context.students_catalog(matric_no = matric_no)
    51 if res:
    52     psm = "Student with matric_no %s exists with Id: %s" % (matric_no,res[0].id)
    53     return context.add_student_form(rendered = rendered,
     50if matric_no:
     51    res = context.students_catalog(matric_no = matric_no)
     52    if res:
     53        psm = "Student with matric_no %s exists with Id: %s" % (matric_no,res[0].id)
     54        return context.add_student_form(rendered = rendered,
    5455                                 psm = psm,
    5556                                 #psm = "%s, %s" % (psm,ds),
Note: See TracChangeset for help on using the changeset viewer.