Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/p/r/Products.plonehrm-2.14/Products/plonehrm/setuphandlers.py   Products.plonehrm(Download)
    setup = getToolByName(site, 'portal_setup')
    qi = getToolByName(site, 'portal_quickinstaller')
    for product in config.QI_DEPS:
        if not qi.isProductInstalled(product):
            qi.installProduct(product, locked=True, hidden=True)
            transaction.savepoint(optimistic=True)
            logger.info("Installed %s.", product)
    # Now reinstall all products for good measure.
    qi.reinstallProducts(config.QI_DEPS)
    logger.info("Reinstalled %s.", config.QI_DEPS)