Changeset 1967 for WAeUP_SRP


Ignore:
Timestamp:
26 Jun 2007, 09:45:54 (18 years ago)
Author:
joachim
Message:

next try to fix registered_courses

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTables.py

    r1966 r1967  
    566566            student_rec = res[0]
    567567            registered_courses = getattr(student_rec,'registered_courses',[])
     568            try:
     569                x = course_id in registered_courses
     570            except TypeError:
     571                registered_courses = []
    568572            if event_type == "sys_add_object" and course_id not in registered_courses:
    569573                registered_courses.append(course_id)
Note: See TracChangeset for help on using the changeset viewer.