Skip to content

Commit

Permalink
Add dependency with collective.volto.blocksfield >= 2.2.0 and install… (
Browse files Browse the repository at this point in the history
#289)

* Add dependency with collective.volto.blocksfield >= 2.2.0 and install it to have all blocks indexed in block_types index.

* fix buildout versions

* fix buildout versions

* black + zprettu

* flake8

* blacked
  • Loading branch information
cekk authored Dec 5, 2024
1 parent 3ff9130 commit 714c79c
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Changelog
6.2.25 (unreleased)
-------------------

- Add dependency with collective.volto.blocksfield >= 2.2.0 and install it to have all blocks indexed in block_types index.
[cekk]
- Do not use eea.api.taxonomy because it is deprecated.
[cekk]

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"plone.api>=1.8.4",
"plone.app.dexterity>2.6.9",
"collective.venue[geolocation]",
"collective.volto.blocksfield",
"collective.volto.blocksfield>=2.2.0",
"collective.z3cform.datagridfield",
"plone.formwidget.geolocation",
"redturtle.volto>=5.5.3",
Expand Down
1 change: 0 additions & 1 deletion src/design/plone/contenttypes/browser/bando.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@

@implementer(IBandoView)
class BandoView(BaseBandoView):

def retrieveContentsOfFolderDeepening(self, path_dfolder):
"""Retrieves all objects contained in Folder Deppening"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<dependency>profile-collective.z3cform.datagridfield:default</dependency>
<dependency>profile-design.plone.contenttypes:taxonomy</dependency>
<dependency>profile-collective.volto.enhancedlinks:default</dependency>
<dependency>profile-collective.volto.blocksfield:default</dependency>
<dependency>profile-collective.taxonomy:default</dependency>
</dependencies>
</metadata>
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ def get_item_children(item):

@adapter(ITextLine, IServizio, IDesignPloneContenttypesLayer)
class ServizioTextLineFieldSerializer(DefaultFieldSerializer):

PERMISSION_TO_CHECK = "View"
CHECK_CONTENT_TYPE = None

Expand Down
4 changes: 3 additions & 1 deletion src/design/plone/contenttypes/upgrades/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -912,11 +912,13 @@
destination="7308"
handler=".to_730x.to_7308"
/>

<genericsetup:upgradeStep
title="Uninstall eea.api.taxonomy"
title="Uninstall eea.api.taxonomy and install collective.volto.blocksfield"
profile="design.plone.contenttypes:default"
source="7308"
destination="7309"
handler=".to_730x.to_7309"
/>

</configure>
4 changes: 4 additions & 0 deletions src/design/plone/contenttypes/upgrades/to_730x.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
from plone.app.upgrade.utils import installOrReinstallProduct
from design.plone.contenttypes.events.common import SUBFOLDERS_MAPPING
from design.plone.contenttypes.utils import create_default_blocks
from plone import api
Expand Down Expand Up @@ -161,8 +162,11 @@ def to_7308(context):


def to_7309(context):
logger.info("Uninstall eea.api.taxonomy")
ps = api.portal.get_tool(name="portal_setup")
ps.runAllImportStepsFromProfile(
"profile-design.plone.contenttypes:remove_eea_api_taxonomy"
)
ps.unsetLastVersionForProfile("eea.api.taxonomy:default")
logger.info("Install blocksfield")
installOrReinstallProduct(api.portal.get(), "collective.volto.blocksfield")
3 changes: 2 additions & 1 deletion test-6.0.x.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ extends =
base.cfg

[versions]
collective.taxonomy = 3.1.5
collective.volto.blocksfield = 2.2.0
collective.taxonomy = 3.1.5

0 comments on commit 714c79c

Please sign in to comment.