- Timestamp:
- 28 Sep 2006, 11:07:55 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Academics.py
r569 r576 806 806 department_d = department.getContent() 807 807 try: 808 di['code'] = department_d.code808 di['code'] = department.getId() 809 809 di['title'] = department_d.title 810 810 di['title_prefix'] = department_d.title_prefix 811 di['code'] = di['code'] or department.id812 811 di['review_state'] = self.portal_workflow.getInfoFor(department,'review_state','no_state') 813 812 export.append('"%(code)s","%(review_state)s","%(title)s","%(title_prefix)s","%(faculty_code)s"' % di) … … 837 836 export.append(heading) 838 837 #import pdb;pdb.set_trace() 839 fields = ("code", 840 "title", 838 fields = ("title", 841 839 "credits", 842 840 "org_code", … … 851 849 di['department_code'] = department.id 852 850 for course in department.courses.objectValues(): 851 di['code'] = course.getId() 853 852 course_d = course.getContent() 854 853 for f in fields: … … 890 889 for certificate in department.certificates.objectValues(): 891 890 certificate_d = certificate.getContent() 892 di['code'] = getattr(certificate_d,'code',None) 891 di['code'] = certificate.id 892 #di['code'] = getattr(certificate_d,'code',None) 893 893 di['title'] = getattr(certificate_d,'title',None) 894 894 di['category'] = getattr(certificate_d,'category',None) … … 949 949 di['semester'] = semesters.index(sem) + 1 950 950 for course in semester.objectValues(): 951 di['code'] = course.getId() 951 952 course_d = course.getContent() 952 di['code'] = course_d.get('code',None)953 953 di['core_or_elective'] = getattr(course_d,'core_or_elective',None) 954 di['code'] = di['code'] or course.id955 954 di['review_state'] = self.portal_workflow.getInfoFor(course,'review_state','no_state') 956 955 try:
Note: See TracChangeset for help on using the changeset viewer.