def setup_handler(context):
    """SENAITE setup handler
    """

    if context.readDataFile("bika.lims_various.txt") is None:
        return

    logger.info("SENAITE setup handler [BEGIN]")

    portal = context.getSite()

    # Run Installers
    remove_default_content(portal)
    hide_navbar_items(portal)
    reindex_content_structure(portal)
    setup_groups(portal)
    setup_catalog_mappings(portal)
    setup_core_catalogs(portal)

    # Setting up all LIMS catalogs defined in catalog folder
    setup_catalogs(portal, getCatalogDefinitions())

    # Run after all catalogs have been setup
    setup_auditlog_catalog(portal)

    logger.info("SENAITE setup handler [DONE]")
def setup_handler ( context ) : if context . readDataFile ( "bika.lims_various.txt" ) is None : return logger . info ( "SENAITE setup handler [BEGIN]" ) portal = context . getSite ( ) remove_default_content ( portal ) hide_navbar_items ( portal ) reindex_content_structure ( portal ) setup_groups ( portal ) setup_catalog_mappings ( portal ) setup_core_catalogs ( portal ) setup_catalogs ( portal , getCatalogDefinitions ( ) ) setup_auditlog_catalog ( portal ) logger . info ( "SENAITE setup handler [DONE]" )
SENAITE setup handler