Did I find the right examples for you? yes no

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

src/p/r/Products.QuillsEnabled-1.8a1/Products/QuillsEnabled/setuphandlers.py   Products.QuillsEnabled(Download)
    quickinstaller = portal.portal_quickinstaller
 
    for dependency in config.DEPENDENCIES:
        print >> out, u"Installing dependency %s:" % dependency
        quickinstaller.installProduct(dependency)

src/v/s/vs.event-0.3.1/vs/event/setuphandlers.py   vs.event(Download)
 
from StringIO import StringIO
from config import PROJECTNAME, DEPENDENCIES
from Products.CMFCore.utils import getToolByName
 
    def installProducts(self, p, out):
        """QuickInstaller install of required Products"""
        qi = getToolByName(p, 'portal_quickinstaller')
        for product in DEPENDENCIES:
            if qi.isProductInstalled(product):

src/p/r/Products.Quills-1.8a1/Products/Quills/setuphandlers.py   Products.Quills(Download)
    portal = context.getSite()
    quickinstaller = portal.portal_quickinstaller
    for dependency in config.DEPENDENCIES:
        print >> out, u"Installing dependency %s:" % dependency
        quickinstaller.installProduct(dependency)

src/i/c/iccommunity.mediawiki-1.0-dev-r371/iccommunity/mediawiki/setuphandlers.py   iccommunity.mediawiki(Download)
    icCommunityManagementMediawikiSQLServer
from config import HAS_PLONE3
from config import DEPENDENCIES
 
import transaction

src/i/c/icnews.acquire-0.9-dev-r371/icnews/acquire/setuphandlers.py   icnews.acquire(Download)
from preferences import icNewsManagementAcquireSQLServer
from config import HAS_PLONE3
from config import DEPENDENCIES
 
import transaction

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

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

src/v/s/vs.dashboardmanager-0.3.4/vs/dashboardmanager/setuphandlers.py   vs.dashboardmanager(Download)
    def installProducts(self, p, out):
        """QuickInstaller install of required Products"""
        qi = getToolByName(p, 'portal_quickinstaller')
        for product in config.DEPENDENCIES:
            if qi.isProductInstalled(product):

src/c/o/collective.collage.easyslider-1.0.4/collective/collage/easyslider/setuphandlers.py   collective.collage.easyslider(Download)
from zope.app.component.hooks import getSite
from Products.CMFCore.utils import getToolByName
from StringIO import StringIO
from config import DEPENDENCIES
import transaction
    installed_prods = [i['id'] for i in \
                       portal.portal_quickinstaller.listInstalledProducts()]
    for dep in DEPENDENCIES:
        if dep in installed_prods:
            qi.uninstallProducts((dep,))

src/z/o/zopyx.authoring-2.4.0/zopyx/authoring/setuphandlers.py   zopyx.authoring(Download)
def installProducts(site):
    """QuickInstaller install of required Products"""
 
    qi = getToolByName(site, 'portal_quickinstaller')
    for product in config.DEPENDENCIES: