Changeset 2618 for WAeUP_SRP/base/skins


Ignore:
Timestamp:
9 Nov 2007, 22:38:22 (17 years ago)
Author:
Henrik Bettermann
Message:

logging messages improved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_utilities/ti_391_resolve.py

    r2609 r2618  
    4949count = 0
    5050commit_after = 50
    51 logger.info('started for %d' % total)
     51logger.info('started to fix %d personal emails' % total)
    5252for brain in brains:
    5353    count += 1
     
    6161            #rwrite ("%s email = %s" % (brain.getId,doc.email))
    6262        except:
    63             logger.info("failed to get application object of %s" % (brain.id,))
     63            logger.info("%s, failed to get application object" % (brain.id,))
    6464            continue
    6565        if not app_doc.app_email or app_doc.app_email.find('@') < 0:
    66             logger.info("%s both emails %s/%s are invalid" % (brain.id,
     66            logger.info("%s, both emails (%s, %s) are invalid" % (brain.id,
    6767                                                              app_doc.app_email,
    6868                                                              brain.email))
     
    7272            #rwrite ("%s email = %s" % (brain.getId,doc.email))
    7373        except:
    74             logger.info("failed to get personal object of %s" % (brain.id,))
     74            logger.info("%s, failed to get personal object" % (brain.id,))
    7575            continue
    76         logger.info("setting email of %s from %s to %s" % (brain.id,
     76        logger.info("%s, setting email from %s to %s" % (brain.id,
    7777                                                            per_doc.email,
    7878                                                            app_doc.app_email))
     
    8484    # if count > 2000:
    8585    #     break
    86 logger.info('finished checked %d edited %d' % (count,
     86logger.info('finished, %d checked, %d edited' % (count,
    8787                                               edited,))
    8888
Note: See TracChangeset for help on using the changeset viewer.