Ignore:
Timestamp:
18 Dec 2008, 06:45:38 (16 years ago)
Author:
Henrik Bettermann
Message:

resolve Uniben #593

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPImport.py

    r3822 r3823  
    403403        return course_id,msg,mapping
    404404    ###)
     405
     406    def remove(self,mapping): ###(
     407        course_id = mapping.get('code','')
     408        course = self.courses_catalog.getRecordByKey(course_id)
     409        msg = ''
     410        while True:
     411            if course is None:
     412                msg =  "no course with id: %s" % course_id
     413                break
     414            courses = getattr(getattr(getattr(self.academics_folder,course.faculty),
     415                                    course.department),
     416                                    'courses')
     417            courses.manage_delObjects((course_id),)     
     418            break
     419        return course_id,msg,mapping
     420    ###)   
     421   
    405422###)
    406423
Note: See TracChangeset for help on using the changeset viewer.