Changeset 1318

Show
Ignore:
Timestamp:
01/28/04 11:05:22 (20 years ago)
Author:
jalet
Message:

New user/group deletion code

Location:
pykota/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/edpykota

    r1294 r1318  
    2424# 
    2525# $Log$ 
     26# Revision 1.68  2004/01/28 10:05:22  jalet 
     27# New user/group deletion code 
     28# 
    2629# Revision 1.67  2004/01/15 11:19:07  jalet 
    2730# Typos in messages wrt gettext. 
     
    497500            printersgroups = self.storage.getMatchingPrinters(options["pgroups"]) 
    498501             
     502        todelete = {}     
    499503        changed = {} # tracks changes made at the user/group level 
    500504        for printer in printers : 
     
    577581                else :     
    578582                    if options["delete"] : 
    579                         entry.delete() 
     583                        todelete[entry.Name] = entry # will be done for each printer, we don't care. 
    580584                    else : 
    581585                        if options["noquota"] or options["prototype"] or ((softlimit is not None) and (hardlimit is not None)) : 
     
    616620                        # The check will be done at print time anyway. 
    617621                        # getattr(self, "warn%sPQuota" % suffix)(entrypquota)     
     622                         
     623        # Now delete what has to be deleted                 
     624        for (name, entry) in todelete.items() :                 
     625            entry.delete() 
    618626                      
    619627if __name__ == "__main__" :  
  • pykota/trunk/NEWS

    r1308 r1318  
    2222PyKota NEWS : 
    2323 
     24    - 1.17alpha1 : 
     25     
     26        - User/Group deletion code in edpykota rewritten. 
     27         
    2428    - 1.16 : 
    2529     
  • pykota/trunk/pykota/version.py

    r1313 r1318  
    2222# 
    2323 
    24 __version__ = "1.16_unofficial" 
     24__version__ = "1.17alpha1_unofficial" 
    2525 
    2626__doc__ = """PyKota : a complete Printing Quota Solution for CUPS and LPRng."""