'Whether to hide CMS from module index pages, can be configured
either as boolean, or as dict per module (with "_default" to
define the default behavior).'

def get_cms_hide_index(self, module):

    hide = self.cms.get('hide_index', {})
    if isinstance(hide, dict):
        for m in (module, '_default'):
            if (m in hide):
                return hide[m]
        return False
    else:
        return hide
