Details
-
Type: Monitor
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: FIWARE-TECH-HELP
-
Labels:
-
HD-Enabler:CKAN
Description
Created question in FIWARE Q/A platform on 10-08-2018 at 05:08
Please, ANSWER this question AT https://stackoverflow.com/questions/51778660/process-verify-configuration-in-right-time-ckan-plugin
Question:
Process verify Configuration in right_time ckan plugin?
Description:
I am unable to understand about what is happening in this code.?
verify_conf = os.environ.get('CKAN_RIGHT_TIME_CONTEXT_VERIFY_REQUESTS', toolkit.config.get('ckan.right_time_context.verify_requests'))
if verify_conf is None or (isinstance(verify_conf, six.string_types) and verify_conf.strip() == ""):
verify_conf = os.environ.get('CKAN_VERIFY_REQUESTS', toolkit.config.get('ckan.verify_requests'))
if isinstance(verify_conf, six.string_types) and verify_conf.strip() != "":
compare_env = verify_conf.lower().strip()
if compare_env in ("true", "1", "on"):
verify = True
elif compare_env in ("false", "0", "off"):
verify = False
else:
verify = verify_conf
elif isinstance(verify_conf, bool):
verify = verify_conf
else:
verify = True
Activity
Field | Original Value | New Value |
---|---|---|
Component/s | FIWARE-TECH-HELP [ 10278 ] |
Assignee | Francisco de la Vega [ fdelavega ] |
HD-Enabler | CKAN [ 10870 ] | |
Description |
Created question in FIWARE Q/A platform on 10-08-2018 at 05:08 {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/51778660/process-verify-configuration-in-right-time-ckan-plugin +Question:+ Process verify Configuration in right_time ckan plugin? +Description:+ I am unable to understand about what is happening in this code.? verify_conf = os.environ.get('CKAN_RIGHT_TIME_CONTEXT_VERIFY_REQUESTS', toolkit.config.get('ckan.right_time_context.verify_requests')) if verify_conf is None or (isinstance(verify_conf, six.string_types) and verify_conf.strip() == ""): verify_conf = os.environ.get('CKAN_VERIFY_REQUESTS', toolkit.config.get('ckan.verify_requests')) if isinstance(verify_conf, six.string_types) and verify_conf.strip() != "": compare_env = verify_conf.lower().strip() if compare_env in ("true", "1", "on"): verify = True elif compare_env in ("false", "0", "off"): verify = False else: verify = verify_conf elif isinstance(verify_conf, bool): verify = verify_conf else: verify = True |
Created question in FIWARE Q/A platform on 10-08-2018 at 05:08
{color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/51778660/process-verify-configuration-in-right-time-ckan-plugin +Question:+ Process verify Configuration in right_time ckan plugin? +Description:+ I am unable to understand about what is happening in this code.? verify_conf = os.environ.get('CKAN_RIGHT_TIME_CONTEXT_VERIFY_REQUESTS', toolkit.config.get('ckan.right_time_context.verify_requests')) if verify_conf is None or (isinstance(verify_conf, six.string_types) and verify_conf.strip() == ""): verify_conf = os.environ.get('CKAN_VERIFY_REQUESTS', toolkit.config.get('ckan.verify_requests')) if isinstance(verify_conf, six.string_types) and verify_conf.strip() != "": compare_env = verify_conf.lower().strip() if compare_env in ("true", "1", "on"): verify = True elif compare_env in ("false", "0", "off"): verify = False else: verify = verify_conf elif isinstance(verify_conf, bool): verify = verify_conf else: verify = True |