Changeset 1063

Show
Ignore:
Timestamp:
07/05/03 14:32:07 (21 years ago)
Author:
jalet
Message:

Ensure that the user don't pass more than two prices for a printer.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/edpykota

    r1043 r1063  
    2323# 
    2424# $Log$ 
     25# Revision 1.49  2003/07/05 12:32:07  jalet 
     26# Ensure that the user don't pass more than two prices for a printer. 
     27# 
    2528# Revision 1.48  2003/06/25 19:52:30  jalet 
    2629# Should be ready for testing :-) 
     
    370373                raise PyKotaToolError, _("Invalid charge amount value %s" % options["charge"]) 
    371374            else :     
    372                 if len(charges) < 2 : 
    373                     charges.append(None) 
     375                if len(charges) != 2 : 
     376                    charges = [charges[0], None] 
    374377                     
    375378        limitby = options["limitby"]