Changeset 3202 for WAeUP_SRP/base
- Timestamp:
- 23 Feb 2008, 16:51:51 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPTool.py
r3201 r3202 1477 1477 item[k.strip()] = v.strip() 1478 1478 count += 1 1479 #item = dict((k.strip(),l.strip()) for (k,l) in item.items())1480 1479 if start: 1481 1480 start = False … … 1486 1485 error_string = "" 1487 1486 total += 1 1488 #error_count = 01489 1487 import_mode = item.get('import_mode','edit') 1490 1488 import_method = getattr(importer, '%(import_mode)s' % vars(),None ) … … 1496 1494 continue 1497 1495 if not importer.validators[k](ds,mode=import_mode): 1498 #if error_count:1499 1496 error_string += ' ++ ' 1500 1497 error_string += "%s: %s" % (k,self.translation_service(ds.getError(k), 1501 1498 ds.getErrorMapping(k))) 1502 #error_count += 11503 1499 if error_string: 1504 1500 error = error_string … … 1526 1522 if error: 1527 1523 digest = makeDigest(mapping,data_keys) 1528 with_error_count += 11529 #percent_finished = (with_error_count + imported_count)/tti_float*1001530 1524 if digest not in pending_digests: 1531 1525 pending_digests += digest, … … 1533 1527 if not pending_only: 1534 1528 log_list += "record added to %(pending_fn)s, %(data_string)s" % vars(), 1535 #logger.info("%(percent_finished)6.3f %% done added to %(pending_fn)s %(data_string)s" % vars())1536 1529 else: 1537 1530 already_in += 1 1538 #logger.info("already in %(pending_fn)s %(data_string)s" % vars())1539 1531 pass 1540 1532 else: … … 1542 1534 imported += mapping, 1543 1535 log_list += "record imported and added to %(imported_fn)s, %(data_string)s" % vars(), 1544 #percent_finished = (with_error_count + imported_count)/tti_float*1001545 #logger.info("%(percent_finished)6.3f %% done imported and added to %(imported_fn)s %(data_string)s" % vars())1546 1536 if log_list: 1547 1537 time_till_now = time.time() - elapse
Note: See TracChangeset for help on using the changeset viewer.