- Timestamp:
- 02/20/06 22:29:28 (19 years ago)
- Location:
- pykota/trunk/pykota/storages
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/ldapstorage.py
r2717 r2718 1414 1414 for (ident, fields) in result : 1415 1415 self.doDelete(ident) 1416 if upquota.Printer.LastJob.UserName == upquota.User.Name : 1417 self.doDelete(upquota.Printer.LastJob.lastjobident) 1416 1418 self.doDelete(upquota.ident) 1417 1419 -
pykota/trunk/pykota/storages/sql.py
r2717 r2718 745 745 """Completely deletes an user print quota entry from the database.""" 746 746 for q in [ 747 "DELETE FROM jobhistory WHERE userid=%s" % self.doQuote(upquota.User.ident), 748 "DELETE FROM userpquota WHERE userid=%s" % self.doQuote(upquota.ident), 747 "DELETE FROM jobhistory WHERE userid=%s AND printerid=%s" \ 748 % (self.doQuote(upquota.User.ident), self.doQuote(upquota.Printer.ident)), 749 "DELETE FROM userpquota WHERE id=%s" % self.doQuote(upquota.ident), 749 750 ] : 750 751 self.doModify(q) … … 753 754 """Completely deletes a group print quota entry from the database.""" 754 755 for q in [ 755 "DELETE FROM grouppquota WHERE groupid=%s" % self.doQuote(gpquota.ident),756 "DELETE FROM grouppquota WHERE id=%s" % self.doQuote(gpquota.ident), 756 757 ] : 757 758 self.doModify(q)