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
- All
- Comments
- History
- Activity
- Transitions
2018-08-10 06:05|CREATED monitor | # answers= 0, accepted answer= False