Changeset 748 for pykota/trunk/bin

Show
Ignore:
Timestamp:
02/07/03 23:13:13 (21 years ago)
Author:
jalet
Message:

Perhaps edpykota is now able to add printers !!! Oh, stupid me !

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/edpykota

    r720 r748  
    1717# 
    1818# $Log$ 
     19# Revision 1.6  2003/02/07 22:13:13  jalet 
     20# Perhaps edpykota is now able to add printers !!! Oh, stupid me ! 
     21# 
    1922# Revision 1.5  2003/02/06 14:49:04  jalet 
    2023# edpykota should be ok now 
     
    120123        printernames = self.storage.getMatchingPrinters(options["printer"]) 
    121124        if not printernames : 
    122             raise PyKotaToolError, "There's no printer matching %s" % options["printer"] 
     125            if options["add"] and options["printer"] and options["printer"].isalpha() : 
     126                self.storage.addPrinter(options["printer"]) 
     127            else : 
     128                raise PyKotaToolError, "There's no printer matching %s" % options["printer"] 
    123129        softlimit = hardlimit = None     
    124130        if options["softlimit"] :