def append(self, node):
        """
        Add an element to the nodes.

        Keyword Arguments

        - node -- Node object or string to append.
        """
        if isinstance(node, str) or isinstance(node, Node):
            self.nodes.append(node)
        else:
            raise TypeError(node % "Invalid type; must be instance of ``str`` or ``BlockNode``. %s")
dataset/ETHPy150Open uwdata/termite-data-server/web2py/gluon/template.py/BlockNode.append/swapped operands of `%`