<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>compbrain.net &#187; cups</title>
	<atom:link href="http://compbrain.net/archives/tag/cups/feed" rel="self" type="application/rss+xml" />
	<link>http://compbrain.net</link>
	<description>A collection of occasional thoughts</description>
	<lastBuildDate>Fri, 09 Dec 2011 03:06:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>UPDATE: Cups class physical destination</title>
		<link>http://compbrain.net/archives/72</link>
		<comments>http://compbrain.net/archives/72#comments</comments>
		<pubDate>Sun, 06 Dec 2009 02:55:12 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[cups]]></category>

		<guid isPermaLink="false">http://compbrain.net/?p=72</guid>
		<description><![CDATA[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 &#8230; <a class="more-link" href="http://compbrain.net/archives/72">More<span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="/archives/49">Not that long ago</a> 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 <a href="http://cups.org/newsgroups.php?s1+gcups.general+v17+T0+Qdestination">responded</a> with information about the &#8220;job-actual-printer-uri&#8221; IPP attribute. </p>
<p>The code is something like:<br />
<code><br />
self.cups = cups.Connection()</p>
<p>def getActualPrinter(self, jobid):<br />
  job_attributes = self.cups.getJobAttributes(jobid)<br />
  return job_attributes['job-actual-printer-uri']<br />
</code></p>
<p>Now with the added code, I&#8217;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. </p>
<div id="attachment_74" class="wp-caption aligncenter" style="width: 310px"><a href="http://compbrain.net/wp-content/uploads/2009/12/Screenshot1.png"><img src="http://compbrain.net/wp-content/uploads/2009/12/Screenshot1-300x62.png" alt="Print Queue Viewer" title="Queue Viewer" width="300" height="62" class="size-medium wp-image-74" /></a><p class="wp-caption-text">CCIS Print Queue Viewer</p></div>
]]></content:encoded>
			<wfw:commentRss>http://compbrain.net/archives/72/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cups class physical destination</title>
		<link>http://compbrain.net/archives/49</link>
		<comments>http://compbrain.net/archives/49#comments</comments>
		<pubDate>Thu, 29 Oct 2009 02:24:22 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[cups]]></category>
		<category><![CDATA[printing]]></category>
		<category><![CDATA[school]]></category>

		<guid isPermaLink="false">http://compbrain.net/?p=49</guid>
		<description><![CDATA[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 &#8230; <a class="more-link" href="http://compbrain.net/archives/49">More<span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Dear Lazyweb,</p>
<p>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&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://compbrain.net/archives/49/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

