Re: Cups doesn't end print jobs.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux