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

        backlogmanager Backlog Manager created issue -
        Hide
        backlogmanager Backlog Manager added a comment -

        2018-08-10 06:05|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2018-08-10 06:05|CREATED monitor | # answers= 0, accepted answer= False
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        veronika Veronika Vlnkova made changes -
        Assignee Francisco de la Vega [ fdelavega ]
        fla Fernando Lopez made changes -
        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

          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: