Changeset 2723

Show
Ignore:
Timestamp:
02/21/06 00:37:45 (19 years ago)
Author:
jerome
Message:

Doesn't delete anymore entries which don't exist.

Location:
pykota/trunk/bin
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pkbcodes

    r2685 r2723  
    9494            nbtotal = len(todelete) 
    9595            for i in range(nbtotal) : 
    96                 todelete[i].delete() 
     96                entry = todelete[i] 
     97                if entry.Exists : 
     98                    entry.delete() 
    9799                percent = 100.0 * float(i) / float(nbtotal) 
    98100                self.display("\r%.02f%%" % percent) 
  • pykota/trunk/bin/pkprinters

    r2716 r2723  
    134134            nbtotal = len(todelete) 
    135135            for i in range(nbtotal) : 
    136                 todelete[i].delete() 
     136                entry = todelete[i] 
     137                if entry.Exists : 
     138                    entry.delete() 
    137139                percent = 100.0 * float(i) / float(nbtotal) 
    138140                self.display("\r%.02f%%" % percent) 
  • pykota/trunk/bin/pkusers

    r2719 r2723  
    170170            nbtotal = len(todelete) 
    171171            for i in range(nbtotal) : 
    172                 todelete[i].delete() 
     172                entry = todelete[i] 
     173                if entry.Exists : 
     174                    entry.delete() 
    173175                percent = 100.0 * float(i) / float(nbtotal) 
    174176                self.display("\r%.02f%%" % percent)