Changeset 2319 for WAeUP_SRP/base/WAeUPTool.py
- Timestamp:
- 5 Oct 2007, 18:49:10 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPTool.py
r2315 r2319 1082 1082 security.declareProtected(ModifyPortalContent,'mass_create_certificate_course') ###( 1083 1083 def mass_create_certificate_course(self,mapping): 1084 if getattr(self,'_v_certificate_course_list',None) is None:1085 self._v_certificate_course_list = []1086 1084 if getattr(self,'_v_ceritficates',None) is None: 1087 1085 res = self.portal_catalog(portal_type = "Certificate") … … 1096 1094 if cert is None: 1097 1095 return '', "No Certificate with ID: %s" % cert_id 1098 if certificate_course_id in self._v_certificate_course_list:1099 return '', "Duplicate CertificateCourse ID: %s" % certificate_course_id1100 1096 level_id = mapping.get('level') 1101 1097 level = getattr(cert,level_id,None) … … 1107 1103 (certificate_course_id,cert_id,level_id) 1108 1104 level.invokeFactory('CertificateCourse', certificate_course_id) 1109 self._v_certificate_course_list.append(certificate_course_id)1110 1105 c = getattr(level,certificate_course_id) 1111 1106 c.getContent().edit(mapping=mapping)
Note: See TracChangeset for help on using the changeset viewer.