Show
Ignore:
Timestamp:
11/12/06 15:56:18 (16 years ago)
Author:
jerome
Message:

Only displays a message if no user/group entry was found to match command line's names.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/edpykota

    r2970 r3053  
    254254                if options["add"] : 
    255255                    percent.display("\n%s...\n" % _("Creation")) 
    256                     dicnames = {} 
    257                     for m in entries : 
    258                         dicnames[m.Name] = None 
    259                     for name in names : 
    260                         if not dicnames.has_key(name) : 
    261                             self.printInfo(_("Impossible to create print quota entries if the user or group object '%s' doesn't already exist. Please use pkusers to create it first.") % name, "warn") 
     256                    if not entries :     
     257                        self.printInfo(_("No entry matches %s. Please use pkusers to create them first.") % (" ".join(names)), "warn") 
    262258                             
    263259                    factory = globals()["Storage%sPQuota" % suffix]