Changeset 2783 for pykota/trunk/bin/edpykota
- Timestamp:
- 03/05/06 09:36:47 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/edpykota
r2782 r2783 177 177 178 178 if not options["list"] : 179 self.display(_("Extracting datas...")) 179 percent = Percent(self) 180 percent.display(_("Extracting datas...")) 180 181 printers = self.storage.getMatchingPrinters(options["printer"]) 181 182 entries = getattr(self.storage, "getMatching%ss" % suffix)(",".join(names)) 183 if not options["list"] : 184 percent.setSize(len(printers) * len(entries)) 182 185 183 186 if options["list"] : … … 197 200 print 198 201 elif options["delete"] : 199 percent = Percent(self, "\n%s..." % _("Deletion"), len(printers) * len(entries))202 percent.display("\n%s..." % _("Deletion")) 200 203 getattr(self.storage, "deleteMany%sPQuotas" % suffix)(printers, entries) 201 204 percent.display("\n") … … 252 255 try : 253 256 if options["add"] : 254 percent = Percent(self, "\n%s...\n" % _("Creation"), len(printers) * len(entries))257 percent.display("\n%s...\n" % _("Creation")) 255 258 dicnames = {} 256 259 for m in entries : … … 284 287 percent.oneMore() 285 288 else : 286 percent = Percent(self, "\n%s...\n" % _("Modification"), len(entries) * len(printers))289 percent.display("\n%s...\n" % _("Modification")) 287 290 for printer in printers : 288 291 for entry in entries : … … 302 305 self.storage.commitTransaction() 303 306 304 try:307 if not options["list"] : 305 308 percent.done() 306 except NameError :307 pass308 309 309 310 if __name__ == "__main__" :