Show
Ignore:
Timestamp:
11/12/03 14:06:38 (20 years ago)
Author:
jalet
Message:

Bug fix wrt no user/group name command line argument to edpykota

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/edpykota

    r1156 r1179  
    2424# 
    2525# $Log$ 
     26# Revision 1.61  2003/11/12 13:06:35  jalet 
     27# Bug fix wrt no user/group name command line argument to edpykota 
     28# 
    2629# Revision 1.60  2003/10/09 21:25:24  jalet 
    2730# Multiple printer names or wildcards can be passed on the command line 
     
    448451                raise PyKotaToolError, _("There's no printer matching %s") % pname 
    449452        if not names :     
    450             if options["add"] and not printeradded : 
    451                 raise PyKotaToolError, _("You have to pass user or group names on the command line") 
     453            if options["add"] : 
     454                if not printeradded : 
     455                    raise PyKotaToolError, _("You have to pass user or group names on the command line") 
     456                else :     
     457                    names = getattr(self.storage, "getAll%ssNames" % suffix)() 
    452458            else :     
    453459                names = [ "*" ] # all users