Changeset 1858


Ignore:
Timestamp:
7 Jun 2007, 19:26:13 (17 years ago)
Author:
joachim
Message:

check for empty course_id

File:
1 edited

Legend:

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

    r1852 r1858  
    3030    aq_portal = context.portal_catalog_real.evalAdvancedQuery
    3131course_id = request.get('course_id')
    32 
    3332mtool = context.portal_membership
    3433member = mtool.getAuthenticatedMember()
     
    3938err = ''
    4039while True:
     40    if not course_id:
     41        err = "Empty course id!"
     42        break
    4143    if d['title'] == 'unknown':
    4244        err = "No such course!"
Note: See TracChangeset for help on using the changeset viewer.