def __validate_source(self): """""" info = self.source.info() if not conf.get_html_dl() and info.getheader( "Content-Type", None): #Content-Type: text/html; charset=ISO-8859-4 if "text/html" in info['Content-Type']: raise StatusError("HTML detected.")
def __validate_source(self): """""" info = self.source.info() if not conf.get_html_dl() and info.getheader("Content-Type", None): #Content-Type: text/html; charset=ISO-8859-4 if "text/html" in info['Content-Type']: raise StatusError("HTML detected.")
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())