ieml/dictionary/table.py
def accept_script(self, script):
        """
        True when the term is a subset of this term tables. If the parent of this term is already a TableSet,return
        always false (only one main tableset)
        :param term:
        :return:
        """
        if isinstance(self.parent, TableSet):
            return False, False

        tables = [table for table in self.script.tables_script if table in script]

        if len(tables) >= 1 and {ss for t in tables for ss in t.singular_sequences} == set(script.singular_sequences):
            return True, False

        return False, False
def accept_script(self, script):
        """
        True when the term is a subset of this term tables. If the parent of this term is already a TableSet,return
        always false (only one main tableset)
        :param term:
        :return:
        """
        if isinstance(self.parent, TableSet):
            return False, False

        tables = [table for table in self.script.tables_script if table in script]

        if len(tables) >= 1 and {ss for t in tables for ss in t.singular_sequences} == set(script.singular_sequences):
            return True, False

        return False, False
True when the term is a subset of this term tables. If the parent of this term is already a TableSet,return
        always false (only one main tableset)
        :param term:
        :return: