Changeset 1701 for WAeUP_SRP/trunk


Ignore:
Timestamp:
24 Apr 2007, 08:40:52 (18 years ago)
Author:
joachim
Message:

allow new students to register courses

File:
1 edited

Legend:

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

    r1676 r1701  
    5959    level.getContent().edit(mapping={'session': study_session})
    6060    context.portal_workflow.doActionFor(level,'close_for_edit')
    61 results = context.results_import(matric_no = student.matric_no)
     61results = []
     62if student.matric_no:
     63    results = context.results_import(matric_no = student.matric_no)
    6264if results:
    6365    #carry_overs = [brain for brain in results if brain.GRADE in ('D','E','F')]
Note: See TracChangeset for help on using the changeset viewer.