- Timestamp:
- 18 Oct 2006, 08:22:37 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Academics.py
r719 r720 358 358 certs = {} 359 359 for f in l: 360 certs[f.id] = f.getObject() 360 ca,ac,fa,depid,co,code = f.relative_path.split('/') 361 pid = "%(depid)s_%(code)s" % vars() 362 certs[pid] = f.getObject() 361 363 for cert_course in cert_courses: 362 364 processing = "processing %s" % format … … 365 367 course_code = cert_course.get('code') 366 368 code = cert_course.get('certificate_code') 367 if not code in certs.keys(): 369 pid = "%(depid)s_%(code)s" % vars() 370 if not pid in certs.keys(): 368 371 em = 'CertCode %(certificate_code)s for %(code)s not found\n' % cert_course 369 372 logger.info(em) … … 371 374 no_import_list.append(format % cert_course + ',"Certificate"\n') 372 375 continue 373 certificate = certs[ code]376 certificate = certs[pid] 374 377 certificate_code = certificate.getId() 375 378 if course_code not in c_ids:
Note: See TracChangeset for help on using the changeset viewer.