Show
Ignore:
Timestamp:
09/15/06 16:31:53 (18 years ago)
Author:
jerome
Message:

Ensures that the billing code and username are encoded into the user's charset
after they have been overwritten through the overwrite_jobticket directive.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r3013 r3018  
    361361            self.OriginalJobBillingCode = None 
    362362        else :     
     363            self.JobBillingCode = self.UTF8ToUserCharset(self.JobBillingCode) 
    363364            self.OriginalJobBillingCode = self.JobBillingCode[:] 
    364365             
     
    466467                        action = "CANCEL" 
    467468                    elif line.startswith("USERNAME=") :     
    468                         username = line.split("=", 1)[1].strip() 
     469                        username = self.userCharsetToUTF8(line.split("=", 1)[1].strip()) 
    469470                        self.logdebug("Seen new username [%s]" % username) 
    470471                    elif line.startswith("BILLINGCODE=") :     
    471                         billingcode = line.split("=", 1)[1].strip() 
     472                        billingcode = self.userCharsetToUTF8(line.split("=", 1)[1].strip()) 
    472473                        self.logdebug("Seen new billing code [%s]" % billingcode) 
    473474            except IOError, msg :