source: main/waeup.plonetheme.ngren3/trunk/waeup/plonetheme/ngren3/upgrades.py @ 10291

Last change on this file since 10291 was 10084, checked in by Henrik Bettermann, 12 years ago

Fill trunk.

  • Property svn:keywords set to Id
File size: 453 bytes
Line 
1from Products.CMFCore.utils import getToolByName
2
3import logging
4
5PROFILE_ID = 'profile-waeup.plonetheme.ngren3:default'
6
7
8def common(context, logger=None):
9    if logger is None:
10        # Called as upgrade step: define our own logger.
11        logger = logging.getLogger('waeup.plonetheme.ngren3')
12
13    setup = getToolByName(context, 'portal_setup')
14    setup.runAllImportStepsFromProfile(PROFILE_ID)
15
16    logger.info("Migrated from previous version")
Note: See TracBrowser for help on using the repository browser.