Bug 548756 - extend interface so JobCancel can take second parameter
Summary: extend interface so JobCancel can take second parameter
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: cups-pk-helper
Version: 13
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Marek Kašík
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 576496
TreeView+ depends on / blocked
 
Reported: 2009-12-18 14:18 UTC by Jiri Popelka
Modified: 2010-04-16 23:29 UTC (History)
2 users (show)

Fixed In Version: cups-pk-helper-0.0.4-13.fc13
Clone Of:
Environment:
Last Closed: 2010-04-16 23:29:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jiri Popelka 2009-12-18 14:18:26 UTC
Description of problem:
In PyCUPS I've changed the Connection.cancelJob() function to take one optional int parameter indicating whether job files (history and document) are purged.
I'd like to change the cups-pk-helper D-Bus API JobCancel method or create another JobCancel2 or JobPurge or other method so I can use PolicyKit to call Connection.cancelJob with two parameters.

I'm PolicyKit beginner so I leave it up to you, what's best.

On 12/18/2009 01:04 PM, Tim Waugh wrote:
The problem is that the cups-pk-helper D-Bus API defines the JobCancel
method as only taking one parameter.  Unfortunately D-Bus doesn't have a
built-in concept of optional parameters, so changing that method to take
two parameters instead of one will break the interface.
The solution is either to extend the existing interface (either by
adding a JobCancel2 method taking an extra parameter, or by adding a new
JobPurge method), or to add a new interface e.g.
org.opensuse.CupsPkHelper.Mechanism2 which defines all the same methods
as before but has two parameters instead of one for JobCancel.

Additional info:
http://www.cups.org/documentation.php/doc-1.4/spec-ipp.html#CANCEL_JOB

Comment 1 Bug Zapper 2010-03-15 13:37:06 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 13 development cycle.
Changing version to '13'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 2 Fedora Update System 2010-03-22 15:33:49 UTC
cups-pk-helper-0.0.4-13.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/cups-pk-helper-0.0.4-13.fc13

Comment 3 Marek Kašík 2010-03-22 16:07:42 UTC
Added new method JobCancelPurge, which takes one more parameter in comparison to JobCancel. The parameter is boolean 'purge'. It controls whether the job files are purged.

Marek

Comment 4 Fedora Update System 2010-03-23 23:25:56 UTC
cups-pk-helper-0.0.4-13.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update cups-pk-helper'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/cups-pk-helper-0.0.4-13.fc13

Comment 5 Fedora Update System 2010-04-16 23:29:28 UTC
cups-pk-helper-0.0.4-13.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.