Enums

Details

class Polkit.Error(value)

Bases: GObject.GEnum

Possible error when using PolicyKit.

classmethod quark()
Return type:

int

FAILED = 0

The operation failed.

CANCELLED = 1

The operation was cancelled.

NOT_SUPPORTED = 2

Operation is not supported.

NOT_AUTHORIZED = 3

Not authorized to perform operation.

class Polkit.ImplicitAuthorization(value)

Bases: GObject.GEnum

Possible implicit authorizations.

classmethod from_string(string)
Parameters:

string (str) – A string

Returns:

out_implicit_authorization:

The location of the resulting deserialization

Return type:

(bool, out_implicit_authorization: Polkit.ImplicitAuthorization)

classmethod to_string(implicit_authorization)
Parameters:

implicit_authorization (Polkit.ImplicitAuthorization) –

Return type:

str

UNKNOWN = -1

Unknown whether the subject is authorized, never returned in any public API.

NOT_AUTHORIZED = 0

Subject is not authorized.

AUTHENTICATION_REQUIRED = 1

Authentication is required.

ADMINISTRATOR_AUTHENTICATION_REQUIRED = 2

Authentication as an administrator is required.

AUTHENTICATION_REQUIRED_RETAINED = 3

Authentication is required. If the authorization is obtained, it is retained.

ADMINISTRATOR_AUTHENTICATION_REQUIRED_RETAINED = 4

Authentication as an administrator is required. If the authorization is obtained, it is retained.

AUTHORIZED = 5

The subject is authorized