Changeset 820

Show
Ignore:
Timestamp:
02/27/03 10:37:02 (22 years ago)
Author:
jalet
Message:

Wildcards seem to work now

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/edpykota

    r815 r820  
    1717# 
    1818# $Log$ 
     19# Revision 1.22  2003/02/27 09:37:02  jalet 
     20# Wildcards seem to work now 
     21# 
    1922# Revision 1.21  2003/02/27 09:04:46  jalet 
    2023# user and group names can be passed as wildcards if the --add option 
     
    232235            if (not options["reset"]) and ((hardlimit is None) or (softlimit is None)) :         
    233236                raise PyKotaToolError, _("Both hard and soft limits must be set ! Aborting.") 
    234             if options["users"] :     
    235                 allnames = self.storage.getPrinterUsers(printer) 
    236             else :     
    237                 allnames = self.storage.getPrinterGroups(printer) 
     237            if options["add"] :     
     238                allnames = names 
     239            else :    
     240                if options["users"] :     
     241                    allnames = self.storage.getPrinterUsers(printer) 
     242                else :     
     243                    allnames = self.storage.getPrinterGroups(printer) 
    238244            for name in [n for n in allnames if self.matchString(n, names)]: 
    239245                if options["users"] :