comparison cagou/core/cagou_main.py @ 281:ef77423ce500

core: store tls_validation flag in host and use if for file upload.
author Goffi <goffi@goffi.org>
date Mon, 25 Mar 2019 07:11:09 +0100
parents b0461363bc65
children 1b835bcfa663
comparison
equal deleted inserted replaced
280:b0461363bc65 281:ef77423ce500
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, 432 self.tls_validation = not C.bool(config.getConfig(main_config,
433 C.CONFIG_SECTION, 433 C.CONFIG_SECTION,
434 'no_certificate_validation', 434 'no_certificate_validation',
435 C.BOOL_FALSE)): 435 C.BOOL_FALSE))
436 if not self.tls_validation:
436 from cagou.core import patches 437 from cagou.core import patches
437 patches.apply() 438 patches.apply()
438 log.warning(u"SSL certificate validation is disabled, this is unsecure!") 439 log.warning(u"SSL certificate validation is disabled, this is unsecure!")
439 440
440 @property 441 @property