Show
Ignore:
Timestamp:
09/06/06 22:06:13 (18 years ago)
Author:
jerome
Message:

Exports two additional environment variables.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r3008 r3012  
    279279        # use CUPS' user when printing test pages from CUPS' web interface 
    280280        self.UserName = sys.argv[2].strip() or self.originalUserName or pwd.getpwuid(os.geteuid())[0] 
     281        self.OriginalUserName = self.UserName[:] 
    281282        self.Title = sys.argv[3].strip() 
    282283        self.Copies = int(sys.argv[4].strip()) 
     
    356357            jbing = jbing[-1] 
    357358        (jbtype, self.JobBillingCode) = jbing 
    358          
     359        if self.JobBillingCode is None : 
     360            self.OriginalJobBillingCode = None 
     361        else :     
     362            self.OriginalJobBillingCode = self.JobBillingCode[:] 
     363             
    359364        baselockfilename = self.DeviceURI.replace("/", ".") 
    360365        baselockfilename = baselockfilename.replace(":", ".") 
     
    647652        os.environ["PYKOTAJOBID"] = self.JobId 
    648653        os.environ["PYKOTAUSERNAME"] = self.UserName 
     654        os.environ["PYKOTAORIGINALUSERNAME"] = self.OriginalUserName 
    649655        os.environ["PYKOTATITLE"] = self.Title 
    650656        os.environ["PYKOTACOPIES"] = str(self.Copies) 
     
    652658        os.environ["PYKOTAFILENAME"] = self.InputFile or "" 
    653659        os.environ["PYKOTAJOBBILLING"] = self.JobBillingCode or "" 
     660        os.environ["PYKOTAORIGINALJOBBILLING"] = self.OriginalJobBillingCode or "" 
    654661        os.environ["PYKOTACONTROLFILE"] = self.ControlFile 
    655662        os.environ["PYKOTAPRINTERHOSTNAME"] = self.PrinterHostName