'Return a list of nested XBlocks for the container.'

def _get_nested_xblocks(self, xblock_descriptor):

    xblocks = list(xblock_descriptor.children)
    for child in xblock_descriptor.children:
        xblocks.extend(self._get_nested_xblocks(child))
    return xblocks
