Index: /pykota/trunk/pykota/version.py
===================================================================
--- /pykota/trunk/pykota/version.py (revision 1430)
+++ /pykota/trunk/pykota/version.py (revision 1437)
@@ -22,5 +22,5 @@
 #
 
-__version__ = "1.19alpha2_unofficial"
+__version__ = "1.19alpha3_unofficial"
 
 __doc__ = """PyKota : a complete Printing Quota Solution for CUPS and LPRng."""
Index: /pykota/trunk/bin/pkprinters
===================================================================
--- /pykota/trunk/bin/pkprinters (revision 1332)
+++ /pykota/trunk/bin/pkprinters (revision 1437)
@@ -24,4 +24,7 @@
 #
 # $Log$
+# Revision 1.4  2004/04/16 16:47:57  jalet
+# pkprinters now accept the --list command line option
+#
 # Revision 1.3  2004/02/04 13:24:41  jalet
 # pkprinters can now remove printers from printers groups.
@@ -80,4 +83,7 @@
                        printer groups.
                        
+  -l | --list          List informations about the printer(s) and the
+                       printers groups it is a member of.
+                       
   -r | --remove        In combination with the --groups option above,                       
                        remove printers from the specified printers groups.
@@ -130,4 +136,7 @@
     def main(self, names, options) :
         """Manage printers."""
+        if options["list"] and not names :
+            names = ["*"]
+            
         if options["groups"] :        
             printersgroups = self.storage.getMatchingPrinters(options["groups"])
@@ -167,4 +176,11 @@
             if options["delete"] :
                 printer.delete()
+            elif options["list"] :    
+                parents = ", ".join([p.Name for p in self.storage.getParentPrinters(printer)])
+                if parents : 
+                    parents = "%s %s" % (_("in"), parents)
+                print "%s (%s + %s) %s" % \
+                      (printer.Name, printer.PricePerJob, \
+                       printer.PricePerPage, parents)
             else :    
                 if options["charge"] :
@@ -180,6 +196,6 @@
     retcode = 0
     try :
-        short_options = "hvac:dg:r"
-        long_options = ["help", "version", "add", "charge=", "delete", "groups=", "remove"]
+        short_options = "hvac:dg:lr"
+        long_options = ["help", "version", "add", "charge=", "delete", "groups=", "list", "remove"]
         
         # Initializes the command line tool
@@ -196,4 +212,5 @@
         options["delete"] = options["d"] or options["delete"] 
         options["groups"] = options["g"] or options["groups"]
+        options["list"] = options["l"] or options["list"]
         options["remove"] = options["r"] or options["remove"]
         
@@ -202,9 +219,10 @@
         elif options["version"] :
             manager.display_version_and_quit()
-        elif options["delete"] and (options["add"] or options["groups"] or options["charge"] or options["remove"]) :    
+        elif (options["delete"] and (options["add"] or options["groups"] or options["charge"] or options["remove"])) \
+           or (options["list"] and (options["add"] or options["delete"] or options["groups"] or options["charge"] or options["remove"])) :
             raise PyKotaToolError, _("incompatible options, see help.")
         elif options["remove"] and not options["groups"] :    
             raise PyKotaToolError, _("You have to pass printer groups names on the command line")
-        elif not args :    
+        elif (not args) and (not options["list"]) :    
             raise PyKotaToolError, _("You have to pass printer names on the command line")
         else :
Index: /pykota/trunk/man/edpykota.1
===================================================================
--- /pykota/trunk/man/edpykota.1 (revision 1414)
+++ /pykota/trunk/man/edpykota.1 (revision 1437)
@@ -1,8 +1,8 @@
 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.33.
-.TH EDPYKOTA "1" "March 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands"
+.TH EDPYKOTA "1" "April 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands"
 .SH NAME
-edpykota \- manual page for edpykota 1.18_unofficial
+edpykota \- manual page for edpykota 1.19alpha2_unofficial
 .SH DESCRIPTION
-edpykota v1.18_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres
+edpykota v1.19alpha2_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres
 A Print Quota editor for PyKota.
 .PP
@@ -81,5 +81,8 @@
 by its account balance or by its page quota.
 The default value is 'quota'. Allowed values
-are 'quota' and 'balance'.
+are 'quota' 'balance' 'quota-then-balance' and
+\&'balance-then-quota'.
+WARNING : quota-then-balance and balance-then-quota
+are not yet implemented.
 .TP
 \fB\-b\fR | \fB\-\-balance\fR b
Index: /pykota/trunk/man/pkprinters.1
===================================================================
--- /pykota/trunk/man/pkprinters.1 (revision 1414)
+++ /pykota/trunk/man/pkprinters.1 (revision 1437)
@@ -1,8 +1,8 @@
 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.33.
-.TH PKPRINTERS "1" "March 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands"
+.TH PKPRINTERS "1" "April 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands"
 .SH NAME
-pkprinters \- manual page for pkprinters 1.18_unofficial
+pkprinters \- manual page for pkprinters 1.19alpha2_unofficial
 .SH DESCRIPTION
-pkprinters v1.18_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres
+pkprinters v1.19alpha2_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres
 A Printers Manager for PyKota.
 .PP
@@ -46,4 +46,8 @@
 default action is to add printers to the specified
 printer groups.
+.TP
+\fB\-l\fR | \fB\-\-list\fR
+List informations about the printer(s) and all
+the printers groups it is a member of.
 .TP
 \fB\-r\fR | \fB\-\-remove\fR
Index: /pykota/trunk/man/pykotme.1
===================================================================
--- /pykota/trunk/man/pykotme.1 (revision 1414)
+++ /pykota/trunk/man/pykotme.1 (revision 1437)
@@ -1,8 +1,8 @@
 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.33.
-.TH PYKOTME "1" "March 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands"
+.TH PYKOTME "1" "April 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands"
 .SH NAME
-pykotme \- manual page for pykotme 1.18_unofficial
+pykotme \- manual page for pykotme 1.19alpha2_unofficial
 .SH DESCRIPTION
-pykotme v1.18_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres
+pykotme v1.19alpha2_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres
 .PP
 Gives print quotes to users.
Index: /pykota/trunk/man/pkhint.1
===================================================================
--- /pykota/trunk/man/pkhint.1 (revision 1414)
+++ /pykota/trunk/man/pkhint.1 (revision 1437)
@@ -1,8 +1,8 @@
 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.33.
-.TH PKHINT "1" "March 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands"
+.TH PKHINT "1" "April 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands"
 .SH NAME
-pkhint \- manual page for pkhint 1.18_unofficial
+pkhint \- manual page for pkhint 1.19alpha2_unofficial
 .SH DESCRIPTION
-pkhint v1.18_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres
+pkhint v1.19alpha2_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres
 A tool to give hints on what accounting method is best for each printer.
 .PP
Index: /pykota/trunk/man/repykota.1
===================================================================
--- /pykota/trunk/man/repykota.1 (revision 1414)
+++ /pykota/trunk/man/repykota.1 (revision 1437)
@@ -1,8 +1,8 @@
 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.33.
-.TH REPYKOTA "1" "March 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands"
+.TH REPYKOTA "1" "April 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands"
 .SH NAME
-repykota \- manual page for repykota 1.18_unofficial
+repykota \- manual page for repykota 1.19alpha2_unofficial
 .SH DESCRIPTION
-repykota v1.18_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres
+repykota v1.19alpha2_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres
 .PP
 Generates print quota reports.
Index: /pykota/trunk/man/warnpykota.1
===================================================================
--- /pykota/trunk/man/warnpykota.1 (revision 1414)
+++ /pykota/trunk/man/warnpykota.1 (revision 1437)
@@ -1,8 +1,8 @@
 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.33.
-.TH WARNPYKOTA "1" "March 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands"
+.TH WARNPYKOTA "1" "April 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands"
 .SH NAME
-warnpykota \- manual page for warnpykota 1.18_unofficial
+warnpykota \- manual page for warnpykota 1.19alpha2_unofficial
 .SH DESCRIPTION
-warnpykota v1.18_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres
+warnpykota v1.19alpha2_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres
 .PP
 Sends mail to users over print quota.
Index: /pykota/trunk/NEWS
===================================================================
--- /pykota/trunk/NEWS (revision 1430)
+++ /pykota/trunk/NEWS (revision 1437)
@@ -22,4 +22,9 @@
 PyKota NEWS :
 
+    - 1.19alpha3 :
+    
+        - pkprinters now accepts the --list command line argument
+          to list informations about printers.
+          
     - 1.19alpha2 :
     
Index: /pykota/trunk/po/en/pykota.po
===================================================================
--- /pykota/trunk/po/en/pykota.po (revision 1413)
+++ /pykota/trunk/po/en/pykota.po (revision 1437)
@@ -442,2 +442,6 @@
 msgid "Problem modifying LDAP entry (%s, %s)"
 msgstr ""
+
+#, python-format
+msgid "in"
+msgstr ""
Index: /pykota/trunk/po/br/pykota.po
===================================================================
--- /pykota/trunk/po/br/pykota.po (revision 1413)
+++ /pykota/trunk/po/br/pykota.po (revision 1437)
@@ -479,2 +479,5 @@
 msgstr "Problema modificando entrada LDAP (%s, %s)"
 
+#, python-format
+msgid "in"
+msgstr "em"
Index: /pykota/trunk/po/pt/pykota.po
===================================================================
--- /pykota/trunk/po/pt/pykota.po (revision 1413)
+++ /pykota/trunk/po/pt/pykota.po (revision 1437)
@@ -479,2 +479,5 @@
 msgstr "Ocorreu um problema ao modificar a entrada LDAP (%s, %s)"
 
+#, python-format
+msgid "in"
+msgstr "em"
Index: /pykota/trunk/po/es/pykota.po
===================================================================
--- /pykota/trunk/po/es/pykota.po (revision 1413)
+++ /pykota/trunk/po/es/pykota.po (revision 1437)
@@ -483,2 +483,5 @@
 msgstr "Problema al modificar entrada LDAP (%s, %s)"
 
+#, python-format
+msgid "in"
+msgstr "en"
Index: /pykota/trunk/po/fr/pykota.po
===================================================================
--- /pykota/trunk/po/fr/pykota.po (revision 1413)
+++ /pykota/trunk/po/fr/pykota.po (revision 1437)
@@ -470,2 +470,5 @@
 msgstr "Probl� durant la modification de l'entr�LDAP (%s, %s)"
 
+#, python-format
+msgid "in"
+msgstr "dans"
Index: /pykota/trunk/po/pykota.pot
===================================================================
--- /pykota/trunk/po/pykota.pot (revision 1413)
+++ /pykota/trunk/po/pykota.pot (revision 1437)
@@ -442,2 +442,6 @@
 msgid "Problem modifying LDAP entry (%s, %s)"
 msgstr ""
+
+#, python-format
+msgid "in"
+msgstr ""
