Ignore:
Timestamp:
23 Feb 2008, 16:51:51 (17 years ago)
Author:
joachim
Message:

remove unnecessary error_counts. The required case is more complicated to do
right.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPTool.py

    r3201 r3202  
    14771477                    item[k.strip()] = v.strip()
    14781478            count += 1
    1479             #item = dict((k.strip(),l.strip()) for (k,l) in item.items())
    14801479            if start:
    14811480                start = False
     
    14861485            error_string = ""
    14871486            total += 1
    1488             #error_count = 0
    14891487            import_mode = item.get('import_mode','edit')
    14901488            import_method = getattr(importer, '%(import_mode)s' % vars(),None )
     
    14961494                        continue
    14971495                    if not importer.validators[k](ds,mode=import_mode):
    1498                         #if error_count:
    14991496                        error_string += ' ++ '
    15001497                        error_string += "%s: %s" % (k,self.translation_service(ds.getError(k),
    15011498                                                                           ds.getErrorMapping(k)))
    1502                         #error_count += 1
    15031499            if error_string:
    15041500                error = error_string
     
    15261522            if error:
    15271523                digest = makeDigest(mapping,data_keys)
    1528                 with_error_count += 1
    1529                 #percent_finished = (with_error_count + imported_count)/tti_float*100
    15301524                if digest not in pending_digests:
    15311525                    pending_digests += digest,
     
    15331527                    if not pending_only:
    15341528                        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())
    15361529                else:
    15371530                    already_in += 1
    1538                     #logger.info("already in %(pending_fn)s %(data_string)s" % vars())
    15391531                    pass
    15401532            else:
     
    15421534                imported += mapping,
    15431535                log_list += "record imported and added to %(imported_fn)s, %(data_string)s" % vars(),
    1544                 #percent_finished = (with_error_count + imported_count)/tti_float*100
    1545                 #logger.info("%(percent_finished)6.3f %% done imported and added to  %(imported_fn)s %(data_string)s" % vars())
    15461536            if log_list:
    15471537                time_till_now = time.time() - elapse
Note: See TracChangeset for help on using the changeset viewer.