Changeset 2287
- Timestamp:
- 06/08/05 09:19:43 (19 years ago)
- Location:
- pykota/trunk/pykota/storages
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/ldapstorage.py
r2276 r2287 541 541 lastjob.JobMD5Sum = fields.get("pykotaMD5Sum", [None])[0] 542 542 lastjob.JobPages = fields.get("pykotaPages", [""])[0] 543 if lastjob.JobTitle == lastjob.JobFileName == lastjob.JobOptions == "hidden" : 544 (lastjob.JobTitle, lastjob.JobFileName, lastjob.JobOptions) = (_("Hidden because of privacy concerns"),) * 3 543 545 date = fields.get("createTimestamp", ["19700101000000"])[0] 544 546 year = int(date[:4]) … … 946 948 if self.privacy : 947 949 # For legal reasons, we want to hide the title, filename and options 948 title = filename = options = _("Hidden because of privacy concerns")950 title = filename = options = "hidden" 949 951 fields = { 950 952 "objectClass" : ["pykotaObject", "pykotaJob"], … … 1103 1105 job.JobMD5Sum = fields.get("pykotaMD5Sum", [None])[0] 1104 1106 job.JobPages = fields.get("pykotaPages", [""])[0] 1107 if job.JobTitle == job.JobFileName == job.JobOptions == "hidden" : 1108 (job.JobTitle, job.JobFileName, job.JobOptions) = (_("Hidden because of privacy concerns"),) * 3 1105 1109 date = fields.get("createTimestamp", ["19700101000000"])[0] 1106 1110 year = int(date[:4]) -
pykota/trunk/pykota/storages/sql.py
r2266 r2287 266 266 lastjob.JobPages = fields.get("pages") 267 267 lastjob.JobBillingCode = self.databaseToUserCharset(fields.get("billingcode")) 268 if lastjob.JobTitle == lastjob.JobFileName == lastjob.JobOptions == "hidden" : 269 (lastjob.JobTitle, lastjob.JobFileName, lastjob.JobOptions) = (_("Hidden because of privacy concerns"),) * 3 268 270 lastjob.Exists = 1 269 271 return lastjob … … 464 466 if self.privacy : 465 467 # For legal reasons, we want to hide the title, filename and options 466 title = filename = options = _("Hidden because of privacy concerns")468 title = filename = options = "hidden" 467 469 filename = self.userCharsetToDatabase(filename) 468 470 title = self.userCharsetToDatabase(title) … … 552 554 job.UserName = fields.get("username") 553 555 job.PrinterName = fields.get("printername") 556 if job.JobTitle == job.JobFileName == job.JobOptions == "hidden" : 557 (job.JobTitle, job.JobFileName, job.JobOptions) = (_("Hidden because of privacy concerns"),) * 3 554 558 job.Exists = 1 555 559 jobs.append(job)