Exemplo n.º 1
0
    def _init_tag_definition_container(self, predicate):
        """
        The tags must also be unique in the scope of the other sheets.
        """
        container = ExcelMoleculeDesignPoolLayoutParsingContainer._init_tag_definition_container(self, predicate)
        if container is None:
            return None
        if container.predicate in self._parser.tag_predicates:
            msg = 'Duplicate factor name "%s"!' % (predicate)
            self._create_error(msg)
            return None

        self._parser.tag_predicates.add(predicate)
        return container