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

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

Adiciona e autoinstala novos produtos

File size: 1.7 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
10    # Install dependencies for this upgrade
11    # List package names
12    packages = [
13      'Products.PlonePopoll',
14      'Products.Carousel'
15      'Products.Doormat',
16      'Products.ImageRepository',
17      'Products.PloneFormGen',
18      'Products.PloneKeywordManager',
19      'Products.PlonePopoll',
20      'Products.windowZ',
21      'collective.contentrules.mailtogroup',
22      'collective.contentrules.mailtolocalrole',
23      'collective.googleanalytics',
24      'collective.portlet.keywordmatches',
25      'collective.prettyphoto',
26      'collective.quickupload',
27      'collective.recaptcha',
28      'collective.simplesocial',
29      'collective.twitter.accounts',
30      'collective.twitter.action',
31      'collective.smartkeywordmanager',
32      'eea.facetednavigation',
33      'raptus.article.default',
34      'sc.contentrules.groupbydate',
35      'sc.social.like',
36      'slc.stickystatusmessages',
37      'webcouturier.dropdownmenu',
38    ]
39    # (name,locked,hidden,install,profile,runProfile)
40    dependencies = [(name,locked,hidden,profile) for name,locked,hidden,install,profile,runProfile in PRODUCTS if ((name in packages) and install)]
41
42    for name, locked, hidden, profile in dependencies:
43        qi.installProduct(name, locked=locked, hidden=hidden, profile=profile)
44
45    # If we have blob and imaging installed
46    # uncomment lines bellow
47    # profiles = ['profile-plone.app.blob:file-replacement',
48    #            'profile-plone.app.blob:image-replacement',
49    #            ]
50    # for profile in profiles:
51    #     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.