Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-14505

[fiware-stackoverflow] Process verify Configuration in right_time ckan plugin?

    Details

      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

        No workflow transitions have been executed yet.

          People

          • Assignee:
            fdelavega Francisco de la Vega
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: