139 | | for (k, v) in self.parent.caches["GROUPPQUOTAS"].items() : |
140 | | if v.Group.Name == self.Name : |
141 | | self.parent.flushEntry("GROUPPQUOTAS", "%s@%s" % (v.Group.Name, v.Printer.Name)) |
| 139 | if self.parent.usecache : |
| 140 | for (k, v) in self.parent.caches["GROUPPQUOTAS"].items() : |
| 141 | if v.Group.Name == self.Name : |
| 142 | self.parent.flushEntry("GROUPPQUOTAS", "%s@%s" % (v.Group.Name, v.Printer.Name)) |
211 | | for (k, v) in self.parent.caches["USERPQUOTAS"].items() : |
212 | | if v.Printer.Name == self.Name : |
213 | | self.parent.flushEntry("USERPQUOTAS", "%s@%s" % (v.User.Name, v.Printer.Name)) |
214 | | for (k, v) in self.parent.caches["GROUPPQUOTAS"].items() : |
215 | | if v.Printer.Name == self.Name : |
216 | | self.parent.flushEntry("GROUPPQUOTAS", "%s@%s" % (v.Group.Name, v.Printer.Name)) |
| 212 | if self.parent.usecache : |
| 213 | for (k, v) in self.parent.caches["USERPQUOTAS"].items() : |
| 214 | if v.Printer.Name == self.Name : |
| 215 | self.parent.flushEntry("USERPQUOTAS", "%s@%s" % (v.User.Name, v.Printer.Name)) |
| 216 | for (k, v) in self.parent.caches["GROUPPQUOTAS"].items() : |
| 217 | if v.Printer.Name == self.Name : |
| 218 | self.parent.flushEntry("GROUPPQUOTAS", "%s@%s" % (v.Group.Name, v.Printer.Name)) |