Changeset 652 for tea4cups

Show
Ignore:
Timestamp:
08/26/05 11:44:28 (19 years ago)
Author:
jerome
Message:

Backported the IPP fix from PyKota

Location:
tea4cups/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • tea4cups/trunk/NEWS

    r648 r652  
    2323Tea4CUPS News : 
    2424 
     25  * 3.01 : 
     26   
     27    - Fixed an IPP parsing bug in some situations. 
     28     
    2529  * 3.00 : 
    2630   
  • tea4cups/trunk/tea4cups

    r648 r652  
    3939from struct import unpack 
    4040 
    41 version = "3.00_unofficial" 
     41version = "3.01_unofficial" 
    4242 
    4343class TeeError(Exception): 
     
    538538        (ippfilename, ippmessage) = self.parseIPPRequestFile() 
    539539        self.ControlFile = ippfilename 
    540         (chtype, self.ClientHost) = ippmessage.operation_attributes.get("job-originating-host-name", \ 
    541                                           ippmessage.job_attributes.get("job-originating-host-name", (None, None))) 
     540        john = ippmessage.operation_attributes.get("job-originating-host-name", \ 
     541               ippmessage.job_attributes.get("job-originating-host-name", \ 
     542               (None, None))) 
     543        if type(john) == type([]) :                           
     544            john = john[-1] 
     545        (chtype, self.ClientHost) = john                           
    542546        (jbtype, self.JobBilling) = ippmessage.job_attributes.get("job-billing", (None, None)) 
    543547