Show
Ignore:
Timestamp:
10/03/03 10:57:55 (21 years ago)
Author:
jalet
Message:

Caching mechanism now caches all that's cacheable.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storages/ldapstorage.py

    r1130 r1131  
    2121# 
    2222# $Log$ 
     23# Revision 1.27  2003/10/03 08:57:55  jalet 
     24# Caching mechanism now caches all that's cacheable. 
     25# 
    2326# Revision 1.26  2003/10/02 20:23:18  jalet 
    2427# Storage caching mechanism added. 
     
    412415                    printer.Exists = 1 
    413416                    printers.append(printer) 
     417                    self.cacheEntry("PRINTERS", printer.Name, printer) 
    414418        return printers         
    415419         
     
    446450                    userpquota.Exists = 1 
    447451                    usersandquotas.append((user, userpquota)) 
     452                    self.cacheEntry("USERPQUOTAS", "%s@%s" % (user.Name, printer.Name), userpquota) 
    448453        usersandquotas.sort(lambda x, y : cmp(x[0].Name, y[0].Name))             
    449454        return usersandquotas