Changeset 2451
- Timestamp:
- 09/16/05 21:05:04 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storage.py
r2450 r2451 100 100 self.parent.commitTransaction() 101 101 self.parent.flushEntry("USERS", self.Name) 102 for (k, v) in self.parent.caches["USERPQUOTAS"].items() : 103 if v.User.Name == self.Name : 104 self.parent.flushEntry("USERPQUOTAS", "%s@%s" % (v.User.Name, v.Printer.Name)) 102 105 self.Exists = 0 103 106 … … 132 135 self.parent.commitTransaction() 133 136 self.parent.flushEntry("GROUPS", self.Name) 137 for (k, v) in self.parent.caches["GROUPPQUOTAS"].items() : 138 if v.Group.Name == self.Name : 139 self.parent.flushEntry("GROUPPQUOTAS", "%s@%s" % (v.Group.Name, v.Printer.Name)) 134 140 self.Exists = 0 135 141 … … 199 205 self.parent.commitTransaction() 200 206 self.parent.flushEntry("PRINTERS", self.Name) 207 for (k, v) in self.parent.caches["USERPQUOTAS"].items() : 208 if v.Printer.Name == self.Name : 209 self.parent.flushEntry("USERPQUOTAS", "%s@%s" % (v.User.Name, v.Printer.Name)) 210 for (k, v) in self.parent.caches["GROUPPQUOTAS"].items() : 211 if v.Printer.Name == self.Name : 212 self.parent.flushEntry("GROUPPQUOTAS", "%s@%s" % (v.Group.Name, v.Printer.Name)) 201 213 self.Exists = 0 202 214