410 | | |
| 413 | |
| 414 | def deletePrinter(self, printer) : |
| 415 | """Completely deletes a printer from the Quota Storage.""" |
| 416 | for q in [ |
| 417 | "DELETE FROM printergroupsmembers WHERE groupid=%s OR printerid=%s" % (self.doQuote(printer.ident), self.doQuote(printer.ident)), |
| 418 | "DELETE FROM jobhistory WHERE printerid=%s" % self.doQuote(printer.ident), |
| 419 | "DELETE FROM grouppquota WHERE printerid=%s" % self.doQuote(printer.ident), |
| 420 | "DELETE FROM userpquota WHERE printerid=%s" % self.doQuote(printer.ident), |
| 421 | "DELETE FROM printers WHERE id=%s" % self.doQuote(printer.ident), |
| 422 | ] : |
| 423 | self.doModify(q) |
| 424 | |