- Timestamp:
- 11 Oct 2007, 16:53:41 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPTool.py
r2342 r2351 702 702 if os.path.exists(picture_path): 703 703 return open(picture_path).read() 704 704 705 705 706 706 ###) … … 1091 1091 if getattr(self,'_v_courses',None) is None: 1092 1092 res = self.courses_catalog() 1093 self._v_courses= [course.code for course in res] 1093 self._v_courses= [course.code for course in res] 1094 1094 if getattr(self,'_v_ceritficates',None) is None: 1095 1095 res = self.portal_catalog(portal_type = "Certificate") … … 1098 1098 self._v_certificates[cert.getId] = cert.getObject() 1099 1099 certificate_course_id = mapping.get('code') 1100 if certificate_course_id not in self._v_courses: 1100 if certificate_course_id not in self._v_courses: 1101 1101 return '', "No Course with ID: %s" % certificate_course_id 1102 1102 cert_id = mapping['certificate_code'] … … 1480 1480 continue 1481 1481 #import pdb;pdb.set_trace() 1482 image = getattr(doc,key )1483 if not hasattr(image,"data"):1482 image = getattr(doc,key,None) 1483 if not image or not hasattr(image,"data"): 1484 1484 continue 1485 1485 if not created:
Note: See TracChangeset for help on using the changeset viewer.