Yes, or if you need that attribute for all jobs,
c.getJobs(requested_attributes=['job-id', 'job-media-sheets-
completed']).

You should be getting the job-uri attribute with c.getJobs() though, and
you're not.  Could you set the environment variable PYCUPS_DEBUG=1 and
see what output you get?  I get this sort of thing:

-> Connection_init(host=localhost)
begin allow threads
httpConnectEncrypt(...)
end allow threads
<- Connection_init() = 0
-> Connection_getJobs(completed,0)
cupsDoRequest("/")
begin allow threads
end allow threads
Attribute: job-uri
Adding job-uri to job dict
Attribute: job-id
Adding 1 to result dict
<- Connection_getJobs() = dict
httpClose()

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/843342

Title:
  getJobs does not return job details

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-cups/+bug/843342/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to