Show
Ignore:
Timestamp:
08/28/05 12:45:51 (19 years ago)
Author:
jerome
Message:

The cupspykota backend was rewritten from scratch. MacOSX servers should
work just fine now.
Severity : High. Testers MORE than welcome :-)

Files:
1 modified

Legend:

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

    r2378 r2409  
    143143                        # BUT the page counter increases !!! 
    144144                        # So we can probably quit being sure it is printing. 
    145                         self.parent.filter.printInfo("Printer %s is lying to us !!!" % self.parent.filter.printername, "warn") 
     145                        self.parent.filter.printInfo("Printer %s is lying to us !!!" % self.parent.filter.PrinterName, "warn") 
    146146                        break 
    147             self.parent.filter.logdebug(_("Waiting for printer %s to be printing...") % self.parent.filter.printername) 
     147            self.parent.filter.logdebug(_("Waiting for printer %s to be printing...") % self.parent.filter.PrinterName) 
    148148            time.sleep(ITERATIONDELAY) 
    149149         
     
    163163            else :     
    164164                idle_num = 0 
    165             self.parent.filter.logdebug(_("Waiting for printer %s's idle status to stabilize...") % self.parent.filter.printername) 
     165            self.parent.filter.logdebug(_("Waiting for printer %s's idle status to stabilize...") % self.parent.filter.PrinterName) 
    166166            time.sleep(ITERATIONDELAY) 
    167167     
     
    172172               (os.environ.get("PYKOTAACTION") != "DENY") and \ 
    173173               (os.environ.get("PYKOTAPHASE") == "AFTER") and \ 
    174                self.parent.filter.jobSizeBytes : 
     174               self.parent.filter.JobSizeBytes : 
    175175                self.waitPrinting() 
    176176            self.waitIdle()     
     
    179179                raise 
    180180            else :     
    181                 self.parent.filter.printInfo(_("PJL querying stage interrupted. Using latest value seen for internal page counter (%s) on printer %s.") % (self.printerInternalPageCounter, self.parent.filter.printername), "warn") 
     181                self.parent.filter.printInfo(_("PJL querying stage interrupted. Using latest value seen for internal page counter (%s) on printer %s.") % (self.printerInternalPageCounter, self.parent.filter.PrinterName), "warn") 
    182182        return self.printerInternalPageCounter 
    183183             
     
    191191        class fakeFilter : 
    192192            def __init__(self) : 
    193                 self.printername = "FakePrintQueue" 
    194                 self.jobSizeBytes = 1 
     193                self.PrinterName = "FakePrintQueue" 
     194                self.JobSizeBytes = 1 
    195195                 
    196196            def printInfo(self, msg, level="info") :