Changeset 3575

Show
Ignore:
Timestamp:
08/23/18 02:18:54 (4 months ago)
Author:
jerome
Message:

Fixes a problem where the job billing attribute is an integer.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tea4cups/trunk/tea4cups

    r3565 r3575  
    44# Tea4CUPS : Tee for CUPS 
    55# 
    6 # (c) 2005-2013 Jerome Alet <alet@librelogiciel.com> 
     6# (c) 2005-2018 Jerome Alet <alet@librelogiciel.com> 
    77# (c) 2005 Peter Stuge <stuge-tea4cups@cdy.org> 
    88# This program is free software; you can redistribute it and/or modify 
     
    2929Licensing terms : 
    3030 
    31   (c) 2005-2010 Jerome Alet <alet@librelogiciel.com> 
     31  (c) 2005-2018 Jerome Alet <alet@librelogiciel.com> 
    3232  (c) 2005 Peter Stuge <stuge-tea4cups@cdy.org> 
    3333  This program is free software; you can redistribute it and/or modify 
     
    8888from struct import pack, unpack 
    8989 
    90 __version__ = "3.13alpha_unofficial" 
     90__version__ = "3.14alpha_unofficial" 
    9191 
    9292class TeeError(Exception): 
     
    11681168            jbing = jbing[-1] 
    11691169        (dummy, self.JobBilling) = jbing 
     1170        try : 
     1171            self.JobBilling = str(self.JobBilling) # In some cases it seems to be an integer : bug in pkipplib or something else ??? 
     1172        except : 
     1173            pass  
    11701174 
    11711175    def parseIPPRequestFile(self) :