Cups doesn't end print jobs.
Tim Waugh
twaugh at redhat.com
Thu Mar 6 14:46:46 UTC 2008
On Thu, 2008-03-06 at 08:13 -0600, John Thompson wrote:
> Ok... here's what happens:
>
> [root at lancre ~]# python <<EOF
> > import cups, pprint
> > cups.setServer("ep0")
> > c=cups.Connection()
> > pprint.pprint(c.getJobs())
> > EOF
> Traceback (most recent call last):
> File "<stdin>", line 4, in <module>
> cups.IPPError: (1030, 'client-error-not-found')
Hmm, I guess it means 'no jobs running'. How about adding
'which_jobs="all"' to the getJobs call, like this?:
python <<EOF
import cups, pprint
cups.setServer("ep0")
c=cups.Connection()
pprint.pprint(c.getJobs(which_jobs="all"))
EOF
That ought to show completed jobs as well.
(What we *really* need to try is 'getJobAttributes' with the actual
remote job ID, but that function doesn't yet exist in the Python cups
module in Fedora 8...)
Tim.
*/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20080306/b38a7a6b/attachment-0001.bin
More information about the users
mailing list