def showErrorMessage(self, fail, var2): dialog = ErrorDialog(_("You don't have enough privileges to view the " "contents of that directory."), self._parent, close_on_response=True) dialog.show()
def _notDirectoryErrback(self, failure, path): failure.trap(NotDirectoryError) dialog = ErrorDialog(_("File is not a directory."), self._parent, close_on_response=True) dialog.show()