Show
Ignore:
Timestamp:
02/04/04 14:24:41 (21 years ago)
Author:
jalet
Message:

pkprinters can now remove printers from printers groups.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storage.py

    r1330 r1332  
    2222# 
    2323# $Log$ 
     24# Revision 1.40  2004/02/04 13:24:41  jalet 
     25# pkprinters can now remove printers from printers groups. 
     26# 
    2427# Revision 1.39  2004/02/04 11:16:59  jalet 
    2528# pkprinters command line tool added. 
     
    262265        if (printer not in self.parent.getParentPrinters(self)) and (printer.ident != self.ident) : 
    263266            self.parent.writePrinterToGroup(self, printer) 
     267            # TODO : reset cached value for printer parents, or add new parent to cached value 
     268             
     269    def delPrinterFromGroup(self, printer) :     
     270        """Deletes a printer from a printer group.""" 
     271        if (printer in self.parent.getParentPrinters(self)) and (printer.ident != self.ident) : 
     272            self.parent.removePrinterFromGroup(self, printer) 
    264273            # TODO : reset cached value for printer parents, or add new parent to cached value 
    265274