Changeset 2225 for pykota/trunk

Show
Ignore:
Timestamp:
05/03/05 23:18:00 (20 years ago)
Author:
jerome
Message:

Fixed inconstistency between SQL and LDAP backends' behavior.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/edpykota

    r2216 r2225  
    330330                raise PyKotaToolError, _("There's no printer matching %s") % pname 
    331331        if not names :     
    332             if options["add"] : 
    333                 if not printeradded : 
    334                     raise PyKotaToolError, _("You have to pass user or group names on the command line") 
    335                 else :     
    336                     names = getattr(self.storage, "getAll%ssNames" % suffix)() 
    337             elif options["delete"] :     
     332            if options["delete"] :     
    338333                raise PyKotaToolError, _("You have to pass user or group names on the command line") 
    339334            else : 
    340                 names = [ "*" ] # all users or groups 
     335                names = getattr(self.storage, "getAll%ssNames" % suffix)() # all users or groups 
    341336                 
    342337        printersgroups = []