Changeset 1755 for pykota/trunk/bin

Show
Ignore:
Timestamp:
09/28/04 19:45:31 (20 years ago)
Author:
jalet
Message:

Added the --hardreset command line option to edpykota

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/edpykota

    r1584 r1755  
    2424# 
    2525# $Log$ 
     26# Revision 1.77  2004/09/28 17:45:31  jalet 
     27# Added the --hardreset command line option to edpykota 
     28# 
    2629# Revision 1.76  2004/07/01 19:56:40  jalet 
    2730# Better dispatching of error messages 
     
    334337  -n | --noquota       Doesn't set a quota but only does accounting. 
    335338   
    336   -r | --reset         Resets the printed page counter for the user 
    337                        or group to zero. The life time page counter  
    338                        is kept unchanged. 
     339  -r | --reset         Resets the actual page counter for the user 
     340                       or group to zero on the specified printers.  
     341                       The life time page counter is kept unchanged. 
     342                        
     343  -R | --hardreset     Resets the actual and life time page counters 
     344                       for the user or group to zero on the specified  
     345                       printers.  
    339346                        
    340347  -l | --limitby l     Choose if the user/group is limited in printing                      
     
    394401  well as every user whose name begins with 'jo'. 
    395402  Their life time page counter on each printer will be kept unchanged. 
     403  You can also reset the life time page counters by using the 
     404  --hardreset | -R command line option. 
    396405   
    397406  $ edpykota --printer hpcolor --noquota jerome 
     
    622631                        if options["reset"] : 
    623632                            entrypquota.reset() 
     633                        elif options["hardreset"] :     
     634                            entrypquota.hardreset() 
    624635                             
    625636                        if balance : 
     
    660671                     "printer" : "*", \ 
    661672                   } 
    662         short_options = "vhdc:l:b:i:naugrp:P:S:H:G:" 
    663         long_options = ["help", "version", "charge=", "delete", "limitby=", "balance=", "ingroups=", "noquota", "add", "users", "groups", "reset", "prototype=", "printer=", "softlimit=", "hardlimit=", "pgroups="] 
     673        short_options = "vhdc:l:b:i:naugrp:P:S:H:G:R" 
     674        long_options = ["help", "version", "charge=", "delete", "limitby=", "balance=", "ingroups=", "noquota", "add", "users", "groups", "reset", "hardreset", "prototype=", "printer=", "softlimit=", "hardlimit=", "pgroups="] 
    664675         
    665676        # Initializes the command line tool 
     
    687698        options["charge"] = options["c"] or options["charge"] 
    688699        options["pgroups"] = options["G"] or options["pgroups"] 
     700        options["hardreset"] = options["R"] or options["hardreset"]  
    689701         
    690702        if options["help"] :