def register_layout(self, name, layout):
        """
        Registers given layout.

        :param name: Layout name.
        :type name: unicode
        :param layout: Layout object.
        :type layout: Layout
        :return: Method success.
        :rtype: bool
        """

        if name in self:
            raise umbra.exceptions.LayoutRegistrationError("{0} | '{1}' layout is already registered!".format(
                self.__class__.__name__, name))

        self.__layouts[name] = layout
        return True
Registers given layout.

        :param name: Layout name.
        :type name: unicode
        :param layout: Layout object.
        :type layout: Layout
        :return: Method success.
        :rtype: bool