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/pgstorage.py

    r1130 r1131  
    2121# 
    2222# $Log$ 
     23# Revision 1.14  2003/10/03 08:57:55  jalet 
     24# Caching mechanism now caches all that's cacheable. 
     25# 
    2326# Revision 1.13  2003/10/02 20:23:18  jalet 
    2427# Storage caching mechanism added. 
     
    270273                user.Exists = 1 
    271274                groupmembers.append(user) 
     275                self.cacheEntry("USERS", user.Name, user) 
    272276        return groupmembers         
    273277         
     
    289293                    printer.Exists = 1 
    290294                    printers.append(printer) 
     295                    self.cacheEntry("PRINTERS", printer.Name, printer) 
    291296        return printers         
    292297         
     
    314319                    userpquota.Exists = 1 
    315320                    usersandquotas.append((user, userpquota)) 
     321                    self.cacheEntry("USERS", user.Name, user) 
     322                    self.cacheEntry("USERPQUOTAS", "%s@%s" % (user.Name, printer.Name), userpquota) 
    316323        return usersandquotas 
    317324