Changeset 3018

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.

Location:
pykota/trunk
Files:
3 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 :             
  • pykota/trunk/NEWS

    r3012 r3018  
    2222PyKota NEWS : 
    2323        
     24    - 1.25alpha12 (2006-09-15) : 
     25     
     26        - Fixes encoding of username and billingcode when they 
     27          are overwritten by a subprocess. 
     28           
    2429    - 1.25alpha11 (2006-09-06) : 
    2530     
  • pykota/trunk/pykota/version.py

    r3012 r3018  
    2222# 
    2323 
    24 __version__ = "1.25alpha11_unofficial" 
     24__version__ = "1.25alpha12_unofficial" 
    2525 
    2626__doc__ = "PyKota : a complete Printing Quota Solution for CUPS."