Comment 32 for bug 828850

Revision history for this message
Edward Donovan (edward.donovan) wrote :

In jockey/ui.py , the exception is handled, in a 'try' block, like this:

  except PermissionDeniedByPolicy:
              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
http://bazaar.launchpad.net/~ubuntu-core-dev/jockey/ubuntu/view/head:/jockey/ui.py#L677

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.