Changeset 1131
- Timestamp:
- 10/03/03 10:57:55 (21 years ago)
- Location:
- pykota/trunk/pykota/storages
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/ldapstorage.py
r1130 r1131 21 21 # 22 22 # $Log$ 23 # Revision 1.27 2003/10/03 08:57:55 jalet 24 # Caching mechanism now caches all that's cacheable. 25 # 23 26 # Revision 1.26 2003/10/02 20:23:18 jalet 24 27 # Storage caching mechanism added. … … 412 415 printer.Exists = 1 413 416 printers.append(printer) 417 self.cacheEntry("PRINTERS", printer.Name, printer) 414 418 return printers 415 419 … … 446 450 userpquota.Exists = 1 447 451 usersandquotas.append((user, userpquota)) 452 self.cacheEntry("USERPQUOTAS", "%s@%s" % (user.Name, printer.Name), userpquota) 448 453 usersandquotas.sort(lambda x, y : cmp(x[0].Name, y[0].Name)) 449 454 return usersandquotas -
pykota/trunk/pykota/storages/pgstorage.py
r1130 r1131 21 21 # 22 22 # $Log$ 23 # Revision 1.14 2003/10/03 08:57:55 jalet 24 # Caching mechanism now caches all that's cacheable. 25 # 23 26 # Revision 1.13 2003/10/02 20:23:18 jalet 24 27 # Storage caching mechanism added. … … 270 273 user.Exists = 1 271 274 groupmembers.append(user) 275 self.cacheEntry("USERS", user.Name, user) 272 276 return groupmembers 273 277 … … 289 293 printer.Exists = 1 290 294 printers.append(printer) 295 self.cacheEntry("PRINTERS", printer.Name, printer) 291 296 return printers 292 297 … … 314 319 userpquota.Exists = 1 315 320 usersandquotas.append((user, userpquota)) 321 self.cacheEntry("USERS", user.Name, user) 322 self.cacheEntry("USERPQUOTAS", "%s@%s" % (user.Name, printer.Name), userpquota) 316 323 return usersandquotas 317 324