Bug 50983

Summary: Add enum for polkit results
Product: PolicyKit Reporter: David Zeuthen (not reading bugmail) <zeuthen>
Component: daemonAssignee: David Zeuthen (not reading bugmail) <zeuthen>
Status: RESOLVED FIXED QA Contact: David Zeuthen (not reading bugmail) <zeuthen>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description David Zeuthen (not reading bugmail) 2012-06-11 14:26:45 UTC
Jasper proposed that it would be nice to be able to write something like

 return polkit.Result.YES;

instead of

 return "yes";

This http://stackoverflow.com/questions/287903/enums-in-javascript seems to be on-topic.
Comment 1 David Zeuthen (not reading bugmail) 2012-07-06 07:20:40 UTC
On git master now.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.