Changeset 3132 for WAeUP_SRP/base/skins
- Timestamp:
- 8 Feb 2008, 21:10:38 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_utilities/changeCostInPins.py
r3127 r3132 43 43 count = 0 44 44 commit_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)) 47 47 to_edit = [] 48 48 for pin in pins: … … 55 55 continue 56 56 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))57 logger.info('%d %s pins found, start editing cost from %s to %s' % 58 (len(pins),batch_id,old_cost,new_cost)) 59 59 for pin in to_edit: 60 60 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), 61 logger.info('finished editing %d %s pins, %d had wrong cost' % (count, batch_id, 63 62 wrong)) 64
Note: See TracChangeset for help on using the changeset viewer.