예제 #1
0
파일: WebTab.py 프로젝트: jsoffer/eilat
    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())
예제 #2
0
    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())
예제 #3
0
        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)
예제 #4
0
파일: MainWin.py 프로젝트: jsoffer/eilat
 def reload_disk_init():
     """ transfer options.yaml and the css directory to global maps """
     load_options()
     load_css()
     notify("reloaded disk config")
예제 #5
0
파일: WebTab.py 프로젝트: jsoffer/eilat
        def fill_notifier(message, request):
            """ sends a message to be displayed by the notifier

            """
            notify(message + " " + request.url().toString())
예제 #6
0
 def reload_disk_init():
     """ transfer options.yaml and the css directory to global maps """
     load_options()
     load_css()
     notify("reloaded disk config")
예제 #7
0
        def fill_notifier(message, request):
            """ sends a message to be displayed by the notifier

            """
            notify(message + " " + request.url().toString())