- Timestamp:
- 27 Sep 2006, 10:41:58 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Academics.py
r567 r568 841 841 "title", 842 842 "faculty_code", 843 "department_code",844 843 "credits", 845 844 "org_code", … … 857 856 for f in fields: 858 857 di[f] = getattr(course_d,f,None) 859 ## try:860 ## di['code'] = course_d.code861 ## di['title'] = course_d.title862 ## di['category'] = course_d.category863 ## di['adm_status'] = course_d.adm_status864 ## di['credits'] = course_d.credits865 ## di['former_code'] = course_d.former_code866 ## di['org_code'] = course_d.org_code867 ## di['passmark'] = course_d.passmark868 ## di['semester'] = course_d.semester869 ## di['session'] = course_d.session870 ## di['code'] = di['code'] or course.id871 ## di['review_state'] = self.portal_workflow.getInfoFor(course,'review_state','no_state')872 858 export.append(dataline % di) 873 859 logger.info('exporting %s %s ' % (course.id, course.title)) 874 ## except:875 ## logger.info('could not export %s %s ' % (course.id, course.title))876 860 continue 877 861 open("%s/import/%s-%s.csv" % (i_home,name,current),"w+").write('\n'.join(export))
Note: See TracChangeset for help on using the changeset viewer.