Changeset 2685
- Timestamp:
- 02/12/06 12:43:30 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/pkbcodes
r2684 r2685 138 138 else : 139 139 self.display("%s...\n" % _("Modification")) 140 if options["description"] or options["reset"] : # optimize when nothing to do 140 reset = options["reset"] 141 if reset or options["description"] : # optimize when nothing to do 142 if options["description"] : 143 description = options["description"].strip() 141 144 nbtotal = len(billingcodes) 142 145 for i in range(nbtotal) : 143 146 billingcode = billingcodes[i] 144 if options["reset"]:147 if reset : 145 148 billingcode.reset() 146 if options["description"] is not None :147 billingcode.setDescription( options["description"].strip())149 if description is not None : # NB : "" is allowed ! 150 billingcode.setDescription(description) 148 151 billingcode.save() 149 152 percent = 100.0 * float(i) / float(nbtotal)