source: publico/PortalInterlegis/produtos/il.portal.policy/il/portal/policy/upgrades/to1000.py @ 6102

Última Alteração nesse arquivo desde 6102 foi 6102, incluída por davilima6, 8 anos atrás

pep8 and missing qi

File size: 1.8 KB
Linha 
1# -*- coding: utf-8 -*-
2from Products.CMFCore.utils import getToolByName
3from il.portal.policy.config import PRODUCTS
4
5
6def upgrade0to1000(context):
7    """Upgrade to version 1000
8    """
9    qi = getToolByName(context, 'portal_quickinstaller')
10
11    # Install dependencies for this upgrade
12    # List package names
13    packages = [
14      'Products.PlonePopoll',
15      'Products.Carousel'
16      'Products.Doormat',
17      'Products.ImageRepository',
18      'Products.PloneFormGen',
19      'Products.PloneKeywordManager',
20      'Products.PlonePopoll',
21      'Products.windowZ',
22      'collective.contentrules.mailtogroup',
23      'collective.contentrules.mailtolocalrole',
24      'collective.googleanalytics',
25      'collective.portlet.keywordmatches',
26      'collective.prettyphoto',
27      'collective.quickupload',
28      'collective.recaptcha',
29      'collective.simplesocial',
30      'collective.twitter.accounts',
31      'collective.twitter.action',
32      'collective.smartkeywordmanager',
33      'eea.facetednavigation',
34      'raptus.article.default',
35      'sc.contentrules.groupbydate',
36      'sc.social.like',
37      'slc.stickystatusmessages',
38      'webcouturier.dropdownmenu',
39    ]
40    # (name,locked,hidden,install,profile,runProfile)
41    dependencies = [(name, locked, hidden, profile) for name, locked, hidden, install, profile, runProfile in PRODUCTS if ((name in packages) and install)]
42
43    for name, locked, hidden, profile in dependencies:
44        qi.installProduct(name, locked=locked, hidden=hidden, profile=profile)
45
46    # If we have blob and imaging installed
47    # uncomment lines bellow
48    # profiles = ['profile-plone.app.blob:file-replacement',
49    #            'profile-plone.app.blob:image-replacement',
50    #            ]
51    # for profile in profiles:
52    #     setup.runAllImportStepsFromProfile(profile)
Note: Veja TracBrowser para ajuda no uso do navegador do trac.
 

The contents and data of this website are published under license:
Creative Commons 4.0 Brasil - Atribuir Fonte - Compartilhar Igual.