'Get the active layout
@param config: the active dashboard configuration
@return: an instance of the active layout'

def get_active_layout(self, config):

    layout = self.available_layouts.get(config.layout)
    if (layout is None):
        layout = S3DashboardBoxesLayout
    elif (type(layout) is tuple):
        layout = layout[(-1)]
    return layout(config)
