def load_finished(self, success): """ Callback for connection """ self.webkit.navlist = [] self.pbar.setVisible(False) self.set_title(self.current['title']) if self.address_bar.hasFocus(): self.webkit.setFocus() if not success: notify("[F]") print("loadFinished: failed", self.webkit.page().mainFrame().requestedUrl())
def handle_ssl_error(reply, errors): """ Callback to connect to when a SSL error happens This ignores the error before reporting it; that means all "issuer certificate could not be found" and similar will be accepted but reported. Until a better way to handle is implemented, keep an eye on the console when counting on SSL. This can and will create security issues. """ reply.ignoreSslErrors() notify("[S]") show_labeled("SSL", reply.url(), detail="/".join([ k.certificate().toText() + k.errorString() for k in errors]), color=Fore.RED)
def reload_disk_init(): """ transfer options.yaml and the css directory to global maps """ load_options() load_css() notify("reloaded disk config")
def fill_notifier(message, request): """ sends a message to be displayed by the notifier """ notify(message + " " + request.url().toString())