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

Última Alteração nesse arquivo desde 5423 foi 5423, incluída por davimedeiros, 9 anos atrás

Atualiza e fixa versao de pacotes

File size: 2.1 KB
Linha 
1# -*- coding: utf-8 -*-
2from zope import component
3import logging
4from Products.CMFCore.utils import getToolByName
5from Products.GenericSetup import interfaces as gsinterfaces
6from Products.GenericSetup.upgrade import listUpgradeSteps
7
8from Products.ZCatalog.ProgressHandler import ZLogHandler
9
10from il.portal.policy.config import PRODUCTS
11
12def upgrade0to1000(context):
13    """Upgrade to version 1000
14    """
15    setup = getToolByName(context, 'portal_setup')
16    migration = getToolByName(context,'portal_migration')
17    catalog = getToolByName(context,'portal_catalog')
18    portal_properties = getToolByName(context,'portal_properties')
19    qi = getToolByName(context,'portal_quickinstaller')
20
21    # Install dependencies for this upgrade
22    # List package names
23    packages = [
24      'Products.PlonePopoll',
25      'Products.Carousel'
26      'Products.Doormat',
27      'Products.ImageRepository',
28      'Products.PloneFormGen',
29      'Products.PloneKeywordManager',
30      'Products.PlonePopoll',
31      'Products.windowZ',
32      'collective.contentrules.mailtogroup',
33      'collective.contentrules.mailtolocalrole',
34      'collective.googleanalytics',
35      'collective.portlet.fblikebox',
36      'collective.portlet.keywordmatches',
37      'collective.recaptcha',
38      'collective.smartkeywordmanager',
39      'eea.facetednavigation',
40      'raptus.article.default',
41      'raptus.article.media',
42      'sc.contentrules.groupbydate',
43      'sc.social.like',
44      'slc.stickystatusmessages',
45      'webcouturier.dropdownmenu',
46               ]
47    # (name,locked,hidden,install,profile,runProfile)
48    dependencies = [(name,locked,hidden,profile) for name,locked,hidden,install,profile,runProfile in PRODUCTS if ((name in packages) and install)]
49   
50    for name, locked, hidden, profile in dependencies:
51        qi.installProduct(name, locked=locked, hidden=hidden, profile=profile)
52   
53    # If we have blob and imaging installed
54    # uncomment lines bellow
55    # profiles = ['profile-plone.app.blob:file-replacement',
56    #            'profile-plone.app.blob:image-replacement',
57    #            ]
58    # for profile in profiles:
59    #     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.