code: def register_layout(self, name, layout):
          
  
          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
docs: Registers given layout.
  
          :param name: Layout name.
          :type name: unicode
          :param layout: Layout object.
          :type layout: Layout
          :return: Method success.
          :rtype: bool