def extend(self, other):
        """
        Extends the objects list of nodes with another objects nodes
        """
        if isinstance(other, BlockNode):
            self.nodes.extend(other.nodes)
            self.blocks.update(other.blocks)
        else:
            raise TypeError(
                other % "Invalid type; must be instance of ``BlockNode``. %s")
dataset/ETHPy150Open uwdata/termite-data-server/web2py/gluon/template.py/Content.extend/swapped operands of `%`