Changeset 2737

Show
Ignore:
Timestamp:
02/21/06 17:04:13 (19 years ago)
Author:
jerome
Message:

Fixed modification stuff.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/edpykota

    r2735 r2737  
    177177            if options["add"] : 
    178178                self.display("%s...\n" % _("Creation")) 
     179                mentries = getattr(self.storage, "getMatching%ss" % suffix)(",".join(names)) 
     180                if not mentries : 
     181                    raise PyKotaCommandLineError, _("Impossible to create print quota entries if the user or group object doesn't exist first. Please use pkusers to create it.") 
    179182                mprinters = self.storage.getMatchingPrinters(options["printer"]) 
    180                 mentries = getattr(self.storage, "getMatching%ss" % suffix)(",".join(names)) 
    181183                nbtotal = len(mprinters) * len(mentries) 
    182184                i = 0 
     
    269271                nbtotal = len(pqentries)     
    270272                i = 0 
    271                 for pqentry in pqentries :     
     273                for (pqkey, pqentry) in pqentries.items() : 
    272274                    ename = getattr(pqentry, suffix).Name 
    273275                    pname = pqentry.Printer.Name