Changeset 3012 for pykota/trunk/bin/cupspykota
- Timestamp:
- 09/06/06 22:06:13 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/cupspykota
r3008 r3012 279 279 # use CUPS' user when printing test pages from CUPS' web interface 280 280 self.UserName = sys.argv[2].strip() or self.originalUserName or pwd.getpwuid(os.geteuid())[0] 281 self.OriginalUserName = self.UserName[:] 281 282 self.Title = sys.argv[3].strip() 282 283 self.Copies = int(sys.argv[4].strip()) … … 356 357 jbing = jbing[-1] 357 358 (jbtype, self.JobBillingCode) = jbing 358 359 if self.JobBillingCode is None : 360 self.OriginalJobBillingCode = None 361 else : 362 self.OriginalJobBillingCode = self.JobBillingCode[:] 363 359 364 baselockfilename = self.DeviceURI.replace("/", ".") 360 365 baselockfilename = baselockfilename.replace(":", ".") … … 647 652 os.environ["PYKOTAJOBID"] = self.JobId 648 653 os.environ["PYKOTAUSERNAME"] = self.UserName 654 os.environ["PYKOTAORIGINALUSERNAME"] = self.OriginalUserName 649 655 os.environ["PYKOTATITLE"] = self.Title 650 656 os.environ["PYKOTACOPIES"] = str(self.Copies) … … 652 658 os.environ["PYKOTAFILENAME"] = self.InputFile or "" 653 659 os.environ["PYKOTAJOBBILLING"] = self.JobBillingCode or "" 660 os.environ["PYKOTAORIGINALJOBBILLING"] = self.OriginalJobBillingCode or "" 654 661 os.environ["PYKOTACONTROLFILE"] = self.ControlFile 655 662 os.environ["PYKOTAPRINTERHOSTNAME"] = self.PrinterHostName