Changeset 2222
- Timestamp:
- 04/29/05 10:00:06 (20 years ago)
- Location:
- pykota/trunk
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/NEWS
r2220 r2222 24 24 - 1.22alpha8 : 25 25 26 - Fixed history retrieval for nonexisting printers or users. 27 26 28 - Clicking on the billing code in printquota.cgi's job history 27 29 now shows all jobs matching this billing code. -
pykota/trunk/pykota/storages/ldapstorage.py
r2221 r2222 1048 1048 precond = "(objectClass=pykotaJob)" 1049 1049 where = [] 1050 if (user is not None) and user.Exists:1050 if user is not None : 1051 1051 where.append("(pykotaUserName=%s)" % user.Name) 1052 if (printer is not None) and printer.Exists:1052 if printer is not None : 1053 1053 where.append("(pykotaPrinterName=%s)" % printer.Name) 1054 1054 if hostname is not None : -
pykota/trunk/pykota/storages/sql.py
r2220 r2222 502 502 query = "SELECT jobhistory.*,username,printername FROM jobhistory,users,printers WHERE users.id=userid AND printers.id=printerid" 503 503 where = [] 504 if (user is not None) and user.Exists :504 if user is not None : # user.ident is None anyway if user doesn't exist 505 505 where.append("userid=%s" % self.doQuote(user.ident)) 506 if (printer is not None) and printer.Exists :506 if printer is not None : # printer.ident is None anyway if printer doesn't exist 507 507 where.append("printerid=%s" % self.doQuote(printer.ident)) 508 508 if hostname is not None :