On Thu, 2008-03-06 at 08:13 -0600, John Thompson wrote: > Ok... here's what happens: > > [root@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. */
Attachment:
signature.asc
Description: This is a digitally signed message part