Changeset 2803
- Timestamp:
- 03/25/06 22:21:30 (19 years ago)
- Location:
- pykota/trunk
- Files:
-
- 2 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 -
pykota/trunk/conf/pykota.conf.sample
r2777 r2803 378 378 # USERNAME=the_username_we_want_to_overwrite_with 379 379 # BILLINGCODE=the_billingcode_we_want_to_overwrite_with 380 # AUTH=NO (equivalent to DENY below) 380 381 # DENY 381 382 # CANCEL … … 388 389 # If only BILLINGCODE= lines are printed, the username is 389 390 # used unchanged. 390 # If DENY or CANCEL is output, but is followed by new USERNAME= or 391 # BILLINGCODE= lines, the job is not denied nor cancelled. 391 # If DENY or CANCEL is output, the username can't be overwritten. 392 392 # 393 393 # This value can be set either globally or on a per printer basis