Skip to content

Commit

Permalink
Merge branch 'main' into bug_60433_traduzioni_control_panel
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-bellenghi committed Dec 12, 2024
2 parents d9d2c01 + 437b34b commit 44d8443
Show file tree
Hide file tree
Showing 14 changed files with 52 additions and 31 deletions.
13 changes: 11 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
Changelog
=========

6.2.25 (unreleased)
-------------------
6.3.1 (unreleased)
------------------

- Update it translations
 [lucabel]


6.3.0 (2024-12-05)
------------------

- 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]


6.2.24 (2024-11-26)
-------------------

Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

setup(
name="design.plone.contenttypes",
version="6.2.25.dev0",
version="6.3.1.dev0",
description="DesignItalia contenty types",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down Expand Up @@ -58,14 +58,14 @@
"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",
"redturtle.bandi",
"z3c.unconfigure",
"plone.restapi",
"eea.api.taxonomy",
"collective.taxonomy>=3.1",
"openpyxl",
"collective.volto.enhancedlinks",
],
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
7 changes: 7 additions & 0 deletions src/design/plone/contenttypes/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@
directory="profiles/fix_syndication"
/>

<genericsetup:registerProfile
name="remove_eea_api_taxonomy"
title="Uninstall eea.api.taxonomy"
description=""
provides="Products.GenericSetup.interfaces.EXTENSION"
directory="profiles/remove_eea_api_taxonomy"
/>
<utility
factory=".setuphandlers.HiddenProfiles"
name="design.plone.contenttypes-hiddenprofiles"
Expand Down
1 change: 1 addition & 0 deletions src/design/plone/contenttypes/overrides.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
Products.ZCatalog.interfaces.IZCatalog"
name="SearchableText"
/>

</unconfigure>

</configure>
9 changes: 0 additions & 9 deletions src/design/plone/contenttypes/patches/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,4 @@

<include package="collective.monkeypatcher" />

<monkey:patch
original="__call__"
replacement=".patches.eea_api_taxonomy_taxonomy_call"
class="collective.taxonomy.utility.Taxonomy"
description="Patch Taxonomy class caller"
order="2000"
preserveOriginal="true"
/>

</configure>
10 changes: 0 additions & 10 deletions src/design/plone/contenttypes/patches/patches.py
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
# -*- coding: utf-8 -*-
from collective.taxonomy.vocabulary import Vocabulary


def eea_api_taxonomy_taxonomy_call(self, context):
if not self.data:
return Vocabulary(self.name, {}, {}, {}, 2)

request = getattr(context, "REQUEST", None)
language = self.getCurrentLanguage(request)
return self.makeVocabulary(language)
5 changes: 3 additions & 2 deletions src/design/plone/contenttypes/profiles/default/metadata.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<metadata>
<version>7308</version>
<version>7309</version>
<dependencies>
<dependency>profile-redturtle.bandi:default</dependency>
<dependency>profile-collective.venue:default</dependency>
<dependency>profile-redturtle.volto:default</dependency>
<dependency>profile-eea.api.taxonomy:default</dependency>
<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
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<layers>
<layer name="eea.api.taxonomy" remove="true" />
</layers>
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
3 changes: 0 additions & 3 deletions src/design/plone/contenttypes/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import collective.volto.enhancedlinks
import collective.z3cform.datagridfield
import design.plone.contenttypes
import eea.api.taxonomy
import kitconcept.seo
import plone.app.caching
import plone.formwidget.geolocation
Expand All @@ -43,7 +42,6 @@ def setUpZope(self, app, configurationContext):
)
self.loadZCML(package=redturtle.bandi)
self.loadZCML(package=kitconcept.seo)
self.loadZCML(package=eea.api.taxonomy)
self.loadZCML(package=collective.taxonomy)
self.loadZCML(package=collective.z3cform.datagridfield)

Expand Down Expand Up @@ -75,7 +73,6 @@ def setUpZope(self, app, configurationContext):
self.loadZCML(package=collective.volto.enhancedlinks)
self.loadZCML(package=design.plone.contenttypes, context=configurationContext)
self.loadZCML(package=plone.formwidget.geolocation)
self.loadZCML(package=eea.api.taxonomy)
self.loadZCML(package=collective.taxonomy)
self.loadZCML(package=collective.z3cform.datagridfield)
xmlconfig.file(
Expand Down
9 changes: 9 additions & 0 deletions src/design/plone/contenttypes/upgrades/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -912,4 +912,13 @@
destination="7308"
handler=".to_730x.to_7308"
/>

<genericsetup:upgradeStep
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>
12 changes: 12 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 @@ -158,3 +159,14 @@ def to_7308(context):
if i % 15 == 0:
logger.info("Progress: {}/{}".format(i, tot))
brain.getObject().reindexObject(idxs=["effectivestart"])


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")
2 changes: 2 additions & 0 deletions test-6.0.x.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ extends =
base.cfg

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

0 comments on commit 44d8443

Please sign in to comment.