Mercurial > libervia-desktop-kivy
comparison cagou/core/cagou_main.py @ 280:b0461363bc65
core: certificate validation can be disabled:
By using "no_certificate_validation=true" in sat.conf in [cagou] section, certificate validation can be disabled.
This is mainly useful for developping on local machines with self-signed certificates.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 20 Mar 2019 09:29:44 +0100 |
parents | a0835f0212d8 |
children | ef77423ce500 |
comparison
equal
deleted
inserted
replaced
279:aea973de55d9 | 280:b0461363bc65 |
---|---|
427 self._plg_wids_transfer = [] # transfer widgets plugins | 427 self._plg_wids_transfer = [] # transfer widgets plugins |
428 self._import_plugins() | 428 self._import_plugins() |
429 self._visible_widgets = {} # visible widgets by classes | 429 self._visible_widgets = {} # visible widgets by classes |
430 self.version = C.APP_VERSION # will be replaced by getVersion() | 430 self.version = C.APP_VERSION # will be replaced by getVersion() |
431 | 431 |
432 if C.bool(config.getConfig(main_config, | |
433 C.CONFIG_SECTION, | |
434 'no_certificate_validation', | |
435 C.BOOL_FALSE)): | |
436 from cagou.core import patches | |
437 patches.apply() | |
438 log.warning(u"SSL certificate validation is disabled, this is unsecure!") | |
439 | |
432 @property | 440 @property |
433 def visible_widgets(self): | 441 def visible_widgets(self): |
434 for w_list in self._visible_widgets.itervalues(): | 442 for w_list in self._visible_widgets.itervalues(): |
435 for w in w_list: | 443 for w in w_list: |
436 yield w | 444 yield w |