- Timestamp:
- 04/16/04 18:47:58 (21 years ago)
- Location:
- pykota/trunk
- Files:
-
- 19 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/pkprinters
r1332 r1437 24 24 # 25 25 # $Log$ 26 # Revision 1.4 2004/04/16 16:47:57 jalet 27 # pkprinters now accept the --list command line option 28 # 26 29 # Revision 1.3 2004/02/04 13:24:41 jalet 27 30 # pkprinters can now remove printers from printers groups. … … 80 83 printer groups. 81 84 85 -l | --list List informations about the printer(s) and the 86 printers groups it is a member of. 87 82 88 -r | --remove In combination with the --groups option above, 83 89 remove printers from the specified printers groups. … … 130 136 def main(self, names, options) : 131 137 """Manage printers.""" 138 if options["list"] and not names : 139 names = ["*"] 140 132 141 if options["groups"] : 133 142 printersgroups = self.storage.getMatchingPrinters(options["groups"]) … … 167 176 if options["delete"] : 168 177 printer.delete() 178 elif options["list"] : 179 parents = ", ".join([p.Name for p in self.storage.getParentPrinters(printer)]) 180 if parents : 181 parents = "%s %s" % (_("in"), parents) 182 print "%s (%s + %s) %s" % \ 183 (printer.Name, printer.PricePerJob, \ 184 printer.PricePerPage, parents) 169 185 else : 170 186 if options["charge"] : … … 180 196 retcode = 0 181 197 try : 182 short_options = "hvac:dg: r"183 long_options = ["help", "version", "add", "charge=", "delete", "groups=", " remove"]198 short_options = "hvac:dg:lr" 199 long_options = ["help", "version", "add", "charge=", "delete", "groups=", "list", "remove"] 184 200 185 201 # Initializes the command line tool … … 196 212 options["delete"] = options["d"] or options["delete"] 197 213 options["groups"] = options["g"] or options["groups"] 214 options["list"] = options["l"] or options["list"] 198 215 options["remove"] = options["r"] or options["remove"] 199 216 … … 202 219 elif options["version"] : 203 220 manager.display_version_and_quit() 204 elif options["delete"] and (options["add"] or options["groups"] or options["charge"] or options["remove"]) : 221 elif (options["delete"] and (options["add"] or options["groups"] or options["charge"] or options["remove"])) \ 222 or (options["list"] and (options["add"] or options["delete"] or options["groups"] or options["charge"] or options["remove"])) : 205 223 raise PyKotaToolError, _("incompatible options, see help.") 206 224 elif options["remove"] and not options["groups"] : 207 225 raise PyKotaToolError, _("You have to pass printer groups names on the command line") 208 elif not args:226 elif (not args) and (not options["list"]) : 209 227 raise PyKotaToolError, _("You have to pass printer names on the command line") 210 228 else : -
pykota/trunk/man/edpykota.1
r1414 r1437 1 1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.33. 2 .TH EDPYKOTA "1" " March2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands"2 .TH EDPYKOTA "1" "April 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 3 3 .SH NAME 4 edpykota \- manual page for edpykota 1.1 8_unofficial4 edpykota \- manual page for edpykota 1.19alpha2_unofficial 5 5 .SH DESCRIPTION 6 edpykota v1.1 8_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres6 edpykota v1.19alpha2_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres 7 7 A Print Quota editor for PyKota. 8 8 .PP … … 81 81 by its account balance or by its page quota. 82 82 The default value is 'quota'. Allowed values 83 are 'quota' and 'balance'. 83 are 'quota' 'balance' 'quota-then-balance' and 84 \&'balance-then-quota'. 85 WARNING : quota-then-balance and balance-then-quota 86 are not yet implemented. 84 87 .TP 85 88 \fB\-b\fR | \fB\-\-balance\fR b -
pykota/trunk/man/pkhint.1
r1414 r1437 1 1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.33. 2 .TH PKHINT "1" " March2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands"2 .TH PKHINT "1" "April 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 3 3 .SH NAME 4 pkhint \- manual page for pkhint 1.1 8_unofficial4 pkhint \- manual page for pkhint 1.19alpha2_unofficial 5 5 .SH DESCRIPTION 6 pkhint v1.1 8_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres6 pkhint v1.19alpha2_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres 7 7 A tool to give hints on what accounting method is best for each printer. 8 8 .PP -
pykota/trunk/man/pkprinters.1
r1414 r1437 1 1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.33. 2 .TH PKPRINTERS "1" " March2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands"2 .TH PKPRINTERS "1" "April 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 3 3 .SH NAME 4 pkprinters \- manual page for pkprinters 1.1 8_unofficial4 pkprinters \- manual page for pkprinters 1.19alpha2_unofficial 5 5 .SH DESCRIPTION 6 pkprinters v1.1 8_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres6 pkprinters v1.19alpha2_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres 7 7 A Printers Manager for PyKota. 8 8 .PP … … 46 46 default action is to add printers to the specified 47 47 printer groups. 48 .TP 49 \fB\-l\fR | \fB\-\-list\fR 50 List informations about the printer(s) and all 51 the printers groups it is a member of. 48 52 .TP 49 53 \fB\-r\fR | \fB\-\-remove\fR -
pykota/trunk/man/pykotme.1
r1414 r1437 1 1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.33. 2 .TH PYKOTME "1" " March2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands"2 .TH PYKOTME "1" "April 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 3 3 .SH NAME 4 pykotme \- manual page for pykotme 1.1 8_unofficial4 pykotme \- manual page for pykotme 1.19alpha2_unofficial 5 5 .SH DESCRIPTION 6 pykotme v1.1 8_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres6 pykotme v1.19alpha2_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres 7 7 .PP 8 8 Gives print quotes to users. -
pykota/trunk/man/repykota.1
r1414 r1437 1 1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.33. 2 .TH REPYKOTA "1" " March2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands"2 .TH REPYKOTA "1" "April 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 3 3 .SH NAME 4 repykota \- manual page for repykota 1.1 8_unofficial4 repykota \- manual page for repykota 1.19alpha2_unofficial 5 5 .SH DESCRIPTION 6 repykota v1.1 8_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres6 repykota v1.19alpha2_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres 7 7 .PP 8 8 Generates print quota reports. -
pykota/trunk/man/warnpykota.1
r1414 r1437 1 1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.33. 2 .TH WARNPYKOTA "1" " March2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands"2 .TH WARNPYKOTA "1" "April 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 3 3 .SH NAME 4 warnpykota \- manual page for warnpykota 1.1 8_unofficial4 warnpykota \- manual page for warnpykota 1.19alpha2_unofficial 5 5 .SH DESCRIPTION 6 warnpykota v1.1 8_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres6 warnpykota v1.19alpha2_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres 7 7 .PP 8 8 Sends mail to users over print quota. -
pykota/trunk/NEWS
r1430 r1437 22 22 PyKota NEWS : 23 23 24 - 1.19alpha3 : 25 26 - pkprinters now accepts the --list command line argument 27 to list informations about printers. 28 24 29 - 1.19alpha2 : 25 30 -
pykota/trunk/po/br/pykota.po
r1413 r1437 479 479 msgstr "Problema modificando entrada LDAP (%s, %s)" 480 480 481 #, python-format 482 msgid "in" 483 msgstr "em" -
pykota/trunk/po/en/pykota.po
r1413 r1437 442 442 msgid "Problem modifying LDAP entry (%s, %s)" 443 443 msgstr "" 444 445 #, python-format 446 msgid "in" 447 msgstr "" -
pykota/trunk/po/es/pykota.po
r1413 r1437 483 483 msgstr "Problema al modificar entrada LDAP (%s, %s)" 484 484 485 #, python-format 486 msgid "in" 487 msgstr "en" -
pykota/trunk/po/fr/pykota.po
r1413 r1437 470 470 msgstr "Probl� durant la modification de l'entr�LDAP (%s, %s)" 471 471 472 #, python-format 473 msgid "in" 474 msgstr "dans" -
pykota/trunk/po/pt/pykota.po
r1413 r1437 479 479 msgstr "Ocorreu um problema ao modificar a entrada LDAP (%s, %s)" 480 480 481 #, python-format 482 msgid "in" 483 msgstr "em" -
pykota/trunk/po/pykota.pot
r1413 r1437 442 442 msgid "Problem modifying LDAP entry (%s, %s)" 443 443 msgstr "" 444 445 #, python-format 446 msgid "in" 447 msgstr "" -
pykota/trunk/pykota/version.py
r1430 r1437 22 22 # 23 23 24 __version__ = "1.19alpha 2_unofficial"24 __version__ = "1.19alpha3_unofficial" 25 25 26 26 __doc__ = """PyKota : a complete Printing Quota Solution for CUPS and LPRng."""