Changeset 527 for WAeUP_SRP/trunk/Academics.py
- Timestamp:
- 17 Sep 2006, 10:31:22 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Academics.py
r526 r527 472 472 di['code'] = di['code'] or department.id 473 473 di['review_state'] = self.portal_workflow.getInfoFor(department,'review_state','no_state') 474 export.append('"%(code)s","%(review_state)s","%(title)s","%(title_prefix)s","%(faculty_code)s" "' % di)474 export.append('"%(code)s","%(review_state)s","%(title)s","%(title_prefix)s","%(faculty_code)s"' % di) 475 475 logger.info('exporting %s %s ' % (department.id, department.title)) 476 476 except: … … 503 503 for department in faculty.objectValues(): 504 504 di['department_code'] = department.id 505 for course in department.courses.objectValues(): 505 for course in department.courses.objectValues(): 506 506 course_d = course.getContent() 507 507 try: … … 542 542 heading += '"n_core","nr_years","original_code","probation_credits",' 543 543 heading += '"promotion_credits","start_level","admin_status"' 544 dataline = '" (code)s","%(review_state)s","%(title)s","%(faculty_code)s","%(department_code)s",'544 dataline = '"%(code)s","%(review_state)s","%(title)s","%(faculty_code)s","%(department_code)s",' 545 545 dataline += '"%(category)s","%(end_level)s","%(m_prefix)s","%(max_elect)s","%(max_pass)s",' 546 546 dataline += '"%(n_core)s","%(nr_years)s","%(original_code)s","%(probation_credits)s",' … … 553 553 for department in faculty.objectValues(): 554 554 di['department_code'] = department.id 555 for certificate in department.certificates.objectValues(): 555 for certificate in department.certificates.objectValues(): 556 556 certificate_d = certificate.getContent() 557 557 di['code'] = certificate_d.get('code',None) … … 596 596 heading += '"certificate_code","level","semester","core_or_elective"' 597 597 dataline = '"%(code)s","%(review_state)s","%(faculty_code)s","%(department_code)s",' 598 dataline += '"%(certificate_code)s","%(level)s","%(semester)s","%(core_or_elective)s"' 598 dataline += '"%(certificate_code)s","%(level)s","%(semester)s","%(core_or_elective)s"' 599 599 export.append(heading) 600 600 #import pdb;pdb.set_trace() … … 605 605 for department in faculty.objectValues(): 606 606 di['department_code'] = department.id 607 for certificate in department.certificates.objectValues(): 607 for certificate in department.certificates.objectValues(): 608 608 di['certificate_code'] = certificate.id 609 609 for level in certificate.objectValues(): … … 612 612 semester = getattr(level,sem,None) 613 613 if semester is not None: 614 di['semester'] = semesters.index(sem) + 1 614 di['semester'] = semesters.index(sem) + 1 615 615 for course in semester.objectValues(): 616 616 course_d = course.getContent() … … 679 679 except: 680 680 return "no Title for %s" % self.getId() 681 681 682 682 683 683 InitializeClass(StudyLevel)
Note: See TracChangeset for help on using the changeset viewer.