Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/o/c/ochDownloader-HEAD/qt/preferences/connection/general.py   ochDownloader(Download)
    def load(self):
        self.retries_box.setValue(conf.get_retries_limit())
        if conf.get_html_dl():
            self.html_box.toggle()
        self.conn_box.setValue(conf.get_max_conn())

src/o/c/ochDownloader-HEAD/core/download/downloader.py   ochDownloader(Download)
    def __validate_source(self):
        """"""
        info = self.source.info()
        if not conf.get_html_dl() and "text/html" in info.getheader("Content-Type", ""): #Content-Type: text/html; charset=ISO-8859-4
            raise StatusError("HTML detected.")