- Timestamp:
- 18 Sep 2006, 07:26:56 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Academics.py
r527 r529 555 555 for certificate in department.certificates.objectValues(): 556 556 certificate_d = certificate.getContent() 557 di['code'] = certificate_d.get('code',None)558 di['title'] = certificate_d.get('title',None)559 di['category'] = certificate_d.get('category',None)560 di['admin_status'] = certificate_d.get('admin_status',None)561 di['end_level'] = certificate_d.get('end_level',None)562 di['m_prefix'] = certificate_d.get('m_prefix',None)563 di['max_elect'] = certificate_d.get('max_elect',None)564 di['max_load'] = certificate_d.get('max_load',None)565 di['max_pass'] = certificate_d.get('max_pass',None)566 di['n_core'] = certificate_d.get('n_core',None)567 di['nr_years'] = certificate_d.get('nr_years',None)568 di['original_code'] = certificate_d.get('original_code',None)569 di['probation_credits'] = certificate_d.get('probation_credits',None)570 di['promotion_credits'] = certificate_d.get('promotion_credits',None)571 di['start_level'] = certificate_d.get('start_level',None)557 di['code'] = getattr(certificate_d,'code',None) 558 di['title'] = getattr(certificate_d,'title',None) 559 di['category'] = getattr(certificate_d,'category',None) 560 di['admin_status'] = getattr(certificate_d,'admin_status',None) 561 di['end_level'] = getattr(certificate_d,'end_level',None) 562 di['m_prefix'] = getattr(certificate_d,'m_prefix',None) 563 di['max_elect'] = getattr(certificate_d,'max_elect',None) 564 di['max_load'] = getattr(certificate_d,'max_load',None) 565 di['max_pass'] = getattr(certificate_d,'max_pass',None) 566 di['n_core'] = getattr(certificate_d,'n_core',None) 567 di['nr_years'] = getattr(certificate_d,'nr_years',None) 568 di['original_code'] = getattr(certificate_d,'original_code',None) 569 di['probation_credits'] = getattr(certificate_d,'probation_credits',None) 570 di['promotion_credits'] = getattr(certificate_d,'promotion_credits',None) 571 di['start_level'] = getattr(certificate_d,'start_level',None) 572 572 di['code'] = di['code'] or certificate.id 573 573 di['review_state'] = self.portal_workflow.getInfoFor(certificate,'review_state','no_state') … … 616 616 course_d = course.getContent() 617 617 di['code'] = course_d.get('code',None) 618 di['core_or_elective'] = course_d.get('core_or_elective',None)618 di['core_or_elective'] = getattr(course_d,'core_or_elective',None) 619 619 di['code'] = di['code'] or course.id 620 620 di['review_state'] = self.portal_workflow.getInfoFor(course,'review_state','no_state')
Note: See TracChangeset for help on using the changeset viewer.