[Bug 843342] Re: getJobs does not return job details

2011-09-21 Thread Tim Waugh
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

Re: [Bug 843342] Re: getJobs does not return job details

2011-09-21 Thread Ryan Lovett
On Wed, Sep 21, 2011 at 08:26:43AM -, Tim Waugh wrote: 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

[Bug 843342] Re: getJobs does not return job details

2011-09-20 Thread Tim Waugh
How do you mean empty values? You should get a dict of job_id: {'job_uri': str}, as by default the only attributes returned now are job_id and job_uri. To specify other attributes, use the request_attributes parameter (make sure to include 'job_id', of course). -- You received this bug

Re: [Bug 843342] Re: getJobs does not return job details

2011-09-20 Thread Ryan Lovett
On Tue, Sep 20, 2011 at 12:33:42PM -, Tim Waugh wrote: How do you mean empty values? You should get a dict of job_id: {'job_uri': str}, as by default the only attributes returned now are job_id and job_uri. To specify other attributes, use the request_attributes parameter (make sure to

[Bug 843342] Re: getJobs does not return job details

2011-09-20 Thread Ryan Lovett
Documented in https://bugzilla.redhat.com/show_bug.cgi?id=584806 apparently. So it looks like I need to do something like: c.getJobAttributes(202)['job-media-sheets-completed'] instead. Thanks for the pointer. ** Bug watch added: Red Hat Bugzilla #584806