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

    if context.readDataFile('senaite.lims.txt') is None:
        return

    logger.info("SENAITE setup handler [BEGIN]")
    portal = context.getSite()  # noqa

    # Custom setup handlers
    setup_html_filter(portal)

    logger.info("SENAITE setup handler [DONE]")
def setup_handler ( context ) : if context . readDataFile ( 'senaite.lims.txt' ) is None : return logger . info ( "SENAITE setup handler [BEGIN]" ) portal = context . getSite ( ) setup_html_filter ( portal ) logger . info ( "SENAITE setup handler [DONE]" )
Generic setup handler