Show
Ignore:
Timestamp:
11/03/07 11:09:17 (16 years ago)
Author:
jerome
Message:

Can now print again under limited circumstances.

Location:
pykota/trunk/pykota/accounters
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/accounters/ink.py

    r3245 r3252  
    8888                    jobsize = len(pages) 
    8989                    try : 
    90                         if self.filter.InputFile is not None : 
     90                        if self.filter.Ticket.FileName is not None : 
    9191                            # when a filename is passed as an argument, the backend  
    9292                            # must generate the correct number of copies. 
    93                             jobsize *= self.filter.Copies 
    94                             self.inkUsage *= self.filter.Copies 
     93                            jobsize *= self.filter.Ticket.Copies 
     94                            self.inkUsage *= self.filter.Ticket.Copies 
    9595                    except AttributeError : # When not run from the cupspykota backend  
    9696                        pass 
  • pykota/trunk/pykota/accounters/software.py

    r3245 r3252  
    6767                else :     
    6868                    try : 
    69                         if self.filter.InputFile is not None : 
     69                        if self.filter.Ticket.FileName is not None : 
    7070                            # when a filename is passed as an argument, the backend  
    7171                            # must generate the correct number of copies. 
    72                             jobsize *= self.filter.Copies 
     72                            jobsize *= self.filter.Ticket.Copies 
    7373                    except AttributeError : # When not run from the cupspykota backend         
    7474                        pass 
     
    128128             
    129129        pagecounter = pagecounter or 0     
    130         if self.filter.InputFile is not None : 
     130        if self.filter.Ticket.FileName is not None : 
    131131            # when a filename is passed as an argument, the backend  
    132132            # must generate the correct number of copies. 
    133             pagecounter *= self.filter.Copies 
     133            pagecounter *= self.filter.Ticket.Copies 
    134134                         
    135135        return pagecounter