Changeset 3053 for pykota/trunk

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

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

Location:
pykota/trunk
Files:
2 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] 
  • pykota/trunk/pykota/version.py

    r3048 r3053  
    2222# 
    2323 
    24 __version__ = "1.25alpha15_unofficial" 
     24__version__ = "1.25alpha16_unofficial" 
    2525 
    2626__doc__ = "PyKota : a complete Printing Quota Solution for CUPS."