doodledashboard/configuration.py
def parse(self, config):
        """
            Parses the section of configuration pertaining to a component
            :param config: dict of specific config section
            :return:
        """

        if "type" not in config:
            raise InvalidConfigurationException("The dashboard configuration has not defined a 'type'. %s" % config)

        component_type = config["type"]
        component_config = self._get_config_by_id(self._component_configs, component_type)

        if not component_config:
            raise ComponentNotFoundForType(component_type)

        options = config.get("options", {})
        component = self._parse_item(component_config, options, config)
        component.name = config.get("name", "")
        return component
def parse(self, config):
        """
            Parses the section of configuration pertaining to a component
            :param config: dict of specific config section
            :return:
        """

        if "type" not in config:
            raise InvalidConfigurationException("The dashboard configuration has not defined a 'type'. %s" % config)

        component_type = config["type"]
        component_config = self._get_config_by_id(self._component_configs, component_type)

        if not component_config:
            raise ComponentNotFoundForType(component_type)

        options = config.get("options", {})
        component = self._parse_item(component_config, options, config)
        component.name = config.get("name", "")
        return component
Parses the section of configuration pertaining to a component
            :param config: dict of specific config section
            :return: