Changeset 758 for pykota/trunk/bin

Show
Ignore:
Timestamp:
02/08/03 10:42:44 (22 years ago)
Author:
jalet
Message:

Better handle wrong or bad command line arguments

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/edpykota

    r757 r758  
    1717# 
    1818# $Log$ 
     19# Revision 1.11  2003/02/08 09:42:44  jalet 
     20# Better handle wrong or bad command line arguments 
     21# 
    1922# Revision 1.10  2003/02/08 09:39:20  jalet 
    2023# typos 
     
    182185            if hardlimit is None :     
    183186                hardlimit = softlimit 
    184                 self.logger.log_message("Undefined hard limit set to %i on printer %s." % (hardlimit, printer)) 
     187                self.logger.log_message("Undefined hard limit set to soft limit (%s) on printer %s." % (str(hardlimit), printer)) 
    185188            if softlimit is None :     
    186189                softlimit = hardlimit 
    187                 self.logger.log_message("Undefined soft limit set to %i on printer %s." % (softlimit, printer)) 
     190                self.logger.log_message("Undefined soft limit set to hard limit (%s) on printer %s." % (str(softlimit), printer)) 
    188191            if (hardlimit is None) or (softlimit is None) :         
    189                 raise PyKotaToolError, "Both hard and soft limits must be set !  Aborting." 
     192                raise PyKotaToolError, "Both hard and soft limits must be set ! Aborting." 
    190193            for name in names : 
    191194                if options["users"] :