Beispiel #1
0
 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())
Beispiel #2
0
 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.")
Beispiel #3
0
 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())