Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
list() -> new empty list
list(iterable) -> new list initialized from iterable's items

src/s/l/slc.aggregation-1.3/slc/aggregation/setuphandlers.py   slc.aggregation(Download)
import logging
import transaction
from Products.CMFCore.utils import getToolByName
from config import PRODUCT_DEPENDENCIES
 
    site = self.getSite()
    qi = getToolByName(site, 'portal_quickinstaller')
    for product in PRODUCT_DEPENDENCIES:
        if not qi.isProductInstalled(product):
            log.info("Installing dependency: %s" % product)