Show
Ignore:
Timestamp:
01/06/04 15:24:59 (20 years ago)
Author:
jalet
Message:

Printer groups should be cached now, if caching is enabled.

Files:
1 modified

Legend:

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

    r1240 r1249  
    2222# 
    2323# $Log$ 
     24# Revision 1.30  2004/01/06 14:24:59  jalet 
     25# Printer groups should be cached now, if caching is enabled. 
     26# 
    2427# Revision 1.29  2003/12/27 16:49:25  uid67467 
    2528# Should be ok now. 
     
    423426        return lastjob     
    424427         
     428    def getParentPrinters(self, printer) :     
     429        """Extracts parent printers information for a given printer from cache.""" 
     430        parents = self.getFromCache("PARENTPRINTERS", printer.Name) 
     431        if parents is None : 
     432            parents = self.getParentPrintersFromBackend(printer) 
     433            self.cacheEntry("PARENTPRINTERS", printer.Name, parents) 
     434        return parents     
     435         
    425436    def getGroupMembers(self, group) :         
    426437        """Returns the group's members list from in-group cache."""