Archive

Posts Tagged ‘cups’

UPDATE: Cups class physical destination

December 5th, 2009

Not that long ago I was searching for a way to find the printer a job sent to a CUPS class printed to. After poking around on the cups.org forums, Michael Sweet responded with information about the “job-actual-printer-uri” IPP attribute.

The code is something like:

self.cups = cups.Connection()

def getActualPrinter(self, jobid):
job_attributes = self.cups.getJobAttributes(jobid)
return job_attributes['job-actual-printer-uri']

Now with the added code, I’ve added physical destination to the CCIS print queue viewer. We have several queues that all point to the same printer (name-simplex, name-duplex, etc all point to name). The same code for identifying destination on print classes also works for these cases.

Print Queue Viewer

CCIS Print Queue Viewer

Will Hacking ,

Cups class physical destination

October 28th, 2009

Dear Lazyweb,

If one creates a print class in CUPS, is it possible to query for the destination printer within that class that a job was actually sent to? There seems to be very little documentation on this sort of thing…

Will Hacking , ,