Changeset 1896


Ignore:
Timestamp:
14 Jun 2007, 13:17:35 (17 years ago)
Author:
Henrik Bettermann
Message:

tickets #200 and #272

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

Legend:

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

    r1892 r1896  
    6868context.portal_workflow.doActionFor(cr,'open')
    6969cr.getContent().edit(mapping=d)
    70 context.portal_workflow.doActionFor(cr,'close')
     70#context.portal_workflow.doActionFor(cr,'close')
    7171args['course_id'] = course_id
    7272
  • WAeUP_SRP/trunk/skins/waeup_student/display_cest_results.py

    r1892 r1896  
    2929                             button = "Search",
    3030                            )
    31 if True or psm == 'invalid':
     31if psm == 'invalid':
    3232    return context.display_cest_results_form(rendered = res,
    3333                                 psm = "Please correct your input!",
  • WAeUP_SRP/trunk/skins/waeup_student/getStudyLevelInfo.py

    r1874 r1896  
    100100    if id.endswith('_co'):
    101101        d = context.getCourseInfo(id[:-3])
     102        try:
     103            credits_total += int(d['credits'])
     104        except ValueError:
     105            credits_total += 0
    102106        d['id'] = id
    103107        d['grade'] = obj.getContent().grade
     
    128132
    129133return info
     134
Note: See TracChangeset for help on using the changeset viewer.