Bug 50983 - Add enum for polkit results
Summary: Add enum for polkit results
Status: RESOLVED FIXED
Alias: None
Product: PolicyKit
Classification: Unclassified
Component: daemon (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: David Zeuthen (not reading bugmail)
QA Contact: David Zeuthen (not reading bugmail)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-11 14:26 UTC by David Zeuthen (not reading bugmail)
Modified: 2012-07-06 07:20 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.