self.string_unprivileged is earlier defined as 'You are not authorized to perform this action.'
I don't yet see where the error_msg method is defined or inherited, just places where it's called. Jockey is built with GUI and text modes, so it's a general mechanism. software-properties is just GUI, and defines error dialogs in a couple places, so I'm not yet sure what a patch should look like.
In jockey/ui.py , the exception is handled, in a 'try' block, like this:
except PermissionDenie dByPolicy:
self.error_ msg(self. string_ unprivileged)
return False
Twice, at different points in the code:
http:// bazaar. launchpad. net/~ubuntu- core-dev/ jockey/ ubuntu/ view/head: /jockey/ ui.py#L508 bazaar. launchpad. net/~ubuntu- core-dev/ jockey/ ubuntu/ view/head: /jockey/ ui.py#L677
http://
self.string_ unprivileged is earlier defined as 'You are not authorized to perform this action.'
I don't yet see where the error_msg method is defined or inherited, just places where it's called. Jockey is built with GUI and text modes, so it's a general mechanism. software-properties is just GUI, and defines error dialogs in a couple places, so I'm not yet sure what a patch should look like.