getJobs does not return job details
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-cups (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
On hardy, running:
import cups
c = cups.Connection()
c.getJobs(
which return a dictionary of completed jobs where the values are dictionaries with useful information, e.g.
{'job-name': u'lab1.pdf', 'job-printer-uri': u'ipp:/
On lucid, the method returns a dictionary with empty values. /var/spool/cups does contain files with job information. Permissions on /var/spool/cups and its contents are the same between hardy and lucid.
# directory
drwx--x--- 3 root lp 4096 2011-09-06 15:05 /var/spool/cups
# spool file
-rw------- 1 root lp 10159 2011-09-06 14:35 c00128
The process table shows cupsd running as root.
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).