Ignore:
Timestamp:
16 Aug 2006, 08:12:45 (18 years ago)
Author:
joachim
Message:

added import fields:
Courses: Category AdmStatus? FORMERCODE
Faculty: CollegeCode?
Certificate: MaxLoad? MaxElect?
CertficateCourse?: AdmStatus?

M profiles/default/schemas/certificate.xml
M profiles/default/schemas/course.xml
M profiles/default/schemas/faculty.xml
M profiles/default/layouts/certificate.xml
M profiles/default/layouts/course.xml
M profiles/default/layouts/faculty.xml
M Academics.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Academics.py

    r371 r379  
    8383            d["degree_grade"] = faculty.get("degree_grade")
    8484            d['institution_type'] = 'faculty'
     85            d['Description'] = ''
     86            d['college_code'] = faculty.get('CollegeCode')
    8587            f.getContent().edit(mapping=d)
    8688        return self.academics.academics_contents()
     
    197199            if len(course_id) == 3:
    198200                course_id = "%s000" % course_id
    199 ##            elif course_id.startswith('CHEM'):
    200 ##                tid = course_id.replace('CHEM','CHE')
    201 ##                logger.info("invalid course_code %(course_id)s renaming to %(tid)s" % vars())
    202 ##                course_id = tid
    203 ##            elif course_id.startswith('DAIC'):
    204 ##                tid = course_id.replace('DAIC','DAC')
    205 ##                logger.info("invalid course_code %(course_id)s renaming to %(tid)s" % vars())
    206 ##                course_id = tid
    207 ##            elif course_id.startswith('DAIM'):
    208 ##                tid = course_id.replace('DAIM','DAM')
    209 ##                logger.info("invalid course_code %(course_id)s renaming to %(tid)s" % vars())
    210 ##                course_id = tid
    211201            elif len(course_id) > 10:
    212202                logger.info("invalid course_code %(CourseCode)s" % course)
     
    230220            dict['session'] = course.get('Session')
    231221            dict['category'] = course.get('Category')
     222            dict['adm_status'] = course.get('AdmStatus')
     223            dict['former_code'] = course.get('FORMERCODE')
    232224            pm = course.get('PassMark')
    233225            if pm.find(',') > -1:
Note: See TracChangeset for help on using the changeset viewer.