Changeset 2803 for pykota/trunk/bin/cupspykota
- Timestamp:
- 03/25/06 22:21:30 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/cupspykota
r2797 r2803 329 329 username = line.split("=", 1)[1].strip() 330 330 self.logdebug("Seen new username [%s]" % username) 331 action = None332 331 elif line.startswith("BILLINGCODE=") : 333 332 billingcode = line.split("=", 1)[1].strip() 334 333 self.logdebug("Seen new billing code [%s]" % billingcode) 335 action = None336 334 inputfile.close() 337 335 self.dropPriv() … … 345 343 self.Reason = _("Print job cancelled.") 346 344 os.environ["PYKOTASTATUS"] = "CANCELLED" 347 if username :348 self.UserName = username 345 elif username : 346 self.UserName = username # If cancelled or denied, we don't allow username to be overwritten 349 347 # NB : we overwrite the billing code even if empty 350 348 self.JobBillingCode = billingcode