(self)
| 301 | return self.conf.get("translate", "service_site") |
| 302 | |
| 303 | def proxy(self): |
| 304 | try: |
| 305 | sec = "proxy" |
| 306 | switch = self.conf.get(sec, "switch") |
| 307 | proxy = self.conf.get(sec, "proxy") |
| 308 | timeout = self.conf.getint(sec, "timeout") |
| 309 | retry = self.conf.getint(sec, "retry") |
| 310 | proxytype = self.conf.get(sec, "type") |
| 311 | iniProxy = IniProxy(switch, proxy, timeout, retry, proxytype) |
| 312 | return iniProxy |
| 313 | except ValueError: |
| 314 | self._exit("common") |
| 315 | |
| 316 | def cacert_file(self) -> str: |
| 317 | return self.conf.get('proxy', 'cacert_file') |
no test coverage detected