Changeset 3132 for WAeUP_SRP/base/skins


Ignore:
Timestamp:
8 Feb 2008, 21:10:38 (17 years ago)
Author:
Henrik Bettermann
Message:

improve logging

File:
1 edited

Legend:

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

    r3127 r3132  
    4343count = 0
    4444commit_after = 50
    45 logger.info('started to change %d pins cost from %s to %s' %
    46             (len(pins),old_cost,new_cost))
     45#logger.info('started to change %d pins cost from %s to %s' %
     46#            (len(pins),old_cost,new_cost))
    4747to_edit = []
    4848for pin in pins:
     
    5555        continue
    5656    to_edit += pin.pin,
    57 logger.info('found %d pins to edit cost from %s to %s' %
    58             (len(to_edit),old_cost,new_cost))
     57logger.info('%d %s pins found, start editing cost from %s to %s' %
     58            (len(pins),batch_id,old_cost,new_cost))           
    5959for pin in to_edit:
    6060    context.portal_pins.modifyRecord(**{'pin': pin, 'cost': float(new_cost)})
    61 logger.info('finished, %d found, %d edited %d with wrong cost ' % (count,
    62                                                                      len(to_edit),
     61logger.info('finished editing %d %s pins, %d had wrong cost' % (count, batch_id,
    6362                                                                     wrong))
    64 
Note: See TracChangeset for help on using the changeset viewer.