Exemplo n.º 1
0
    def _parse_layout_codes(self, layout_container, tag_definitions):
        """
        We must distinguish between parameter and normal tags.
        For non-parameter tags, the data is passed to the layout
        containers, for parameters it is stored in the layout containers.

        We could also do this afterwards, but then it is harder to distinguish
        between parameter tags and other tags.
        """
        for tag_definition in tag_definitions:
            predicate = tag_definition.predicate
            parameter_container = self.__get_parameter_for_predicate(predicate)
            if parameter_container is not None:
                parameter_container.add_layout_container(layout_container)

        ExcelMoleculeDesignPoolLayoutParsingContainer._parse_layout_codes(self,
                                              layout_container, tag_definitions)
Exemplo n.º 2
0
    def _parse_layout_codes(self, layout_container, tag_definitions):
        """
        We must distinguish between parameter and normal tags.
        For non-parameter tags, the data is passed to the layout
        containers, for parameters it is stored in the layout containers.

        We could also do this afterwards, but then it is harder to distinguish
        between parameter tags and other tags.
        """
        for tag_definition in tag_definitions:
            predicate = tag_definition.predicate
            parameter_container = self.__get_parameter_for_predicate(predicate)
            if parameter_container is not None:
                parameter_container.add_layout_container(layout_container)

        ExcelMoleculeDesignPoolLayoutParsingContainer._parse_layout_codes(
            self, layout_container, tag_definitions)