Changeset 923
- Timestamp:
- 04/16/03 10:01:54 (22 years ago)
- Location:
- pykota/trunk
- Files:
-
- 5 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/edpykota
r922 r923 23 23 # 24 24 # $Log$ 25 # Revision 1.39 2003/04/16 08:01:53 jalet 26 # edpykota --charge command line option works now. 27 # 25 28 # Revision 1.38 2003/04/15 22:02:43 jalet 26 29 # More complete docstring … … 334 337 else : 335 338 names = [ "*" ] # all users 339 if options["charge"] : 340 try : 341 charges = [float(part) for part in options["charge"].split(',', 1)] 342 except ValueError : 343 raise PyKotaToolError, _("Invalid charge amount value %s" % options["charge"]) 344 else : 345 if len(charges) < 2 : 346 charges.append(None) 336 347 for (printerid, printer) in printers : 348 if options["charge"] : 349 (perpage, perjob) = charges 350 if perjob is None : 351 # we don't want to change this one, get the old value 352 (dummy, perjob) = self.storage.getPrinterPrices(printerid) 353 self.storage.setPrinterPrices(printerid, perpage, perjob) 337 354 if options["prototype"] : 338 355 if options["groups"] : … … 354 371 if softlimit is not None : 355 372 self.logger.log_message(_("Undefined soft limit set to hard limit (%s) on printer %s.") % (str(softlimit), printer)) 356 if (not options["reset"] and not options["noquota"] and not options["prototype"] and not options["limitby"] and not options["balance"] and not options["delete"] ) and ((hardlimit is None) or (softlimit is None)) :373 if (not options["reset"] and not options["noquota"] and not options["prototype"] and not options["limitby"] and not options["balance"] and not options["delete"] and not options["charge"]) and ((hardlimit is None) or (softlimit is None)) : 357 374 raise PyKotaToolError, _("Both hard and soft limits must be set ! Aborting.") 358 375 if options["add"] : -
pykota/trunk/po/en/pykota.po
r905 r923 21 21 # 22 22 # $Log$ 23 # Revision 1.15 2003/04/16 08:01:54 jalet 24 # edpykota --charge command line option works now. 25 # 23 26 # Revision 1.14 2003/04/11 14:42:54 jalet 24 27 # Translations … … 255 258 msgid "User %s not registered in the PyKota system" 256 259 msgstr "" 260 261 msgid "Invalid charge amount value %s" 262 msgstr "" -
pykota/trunk/po/fr/pykota.po
r905 r923 21 21 # 22 22 # $Log$ 23 # Revision 1.13 2003/04/16 08:01:54 jalet 24 # edpykota --charge command line option works now. 25 # 23 26 # Revision 1.12 2003/04/11 14:42:54 jalet 24 27 # Translations … … 263 266 msgid "User %s not registered in the PyKota system" 264 267 msgstr "Utilisateur %s non enregistr�ans le syst� PyKota" 268 269 msgid "Invalid charge amount value %s" 270 msgstr "Montant �omptabiliser %s incorrect" -
pykota/trunk/po/pykota.pot
r905 r923 21 21 # 22 22 # $Log$ 23 # Revision 1.15 2003/04/16 08:01:54 jalet 24 # edpykota --charge command line option works now. 25 # 23 26 # Revision 1.14 2003/04/11 14:42:54 jalet 24 27 # Translations … … 255 258 msgid "User %s not registered in the PyKota system" 256 259 msgstr "" 260 261 msgid "Invalid charge amount value %s" 262 msgstr ""