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