-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from eea/develop
Release: Volto 17
- Loading branch information
Showing
5 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
""" Upgrade to version 2.0 | ||
""" | ||
# pylint: disable=line-too-long | ||
import logging | ||
from plone import api | ||
from zope.component import queryMultiAdapter | ||
logger = logging.getLogger("eea.website.policy") | ||
|
||
|
||
def migrate_teaser(context): | ||
""" Fix Indicator schema """ | ||
portal = api.portal.get() | ||
view = queryMultiAdapter((portal, context.REQUEST), name="teaser-migrate") | ||
count = view.migrate() | ||
logger.info("Migrated %s objects Teaser Blocks", count) | ||
view = queryMultiAdapter( | ||
(portal, context.REQUEST), name="teaser-layout-migrate") | ||
count = view.migrate() | ||
logger.info("Migrated %s c-types layouts: teaserGrid to gridBlock", count) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.1 | ||
4.0 |