Skip to content

Commit

Permalink
Merge branch 'main' into add_getobjsize_info_in_serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed Jan 26, 2024
2 parents f14babd + 60a899b commit d8fb433
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Changelog
- Add collective.volto.enhancedlinks dependency (needed for slate integration).
[cekk]
- Add enhancedlinks infos in File field serializer.
- Fixed script to update pdc with description
[eikichi18]
- Add getObjSize info in File field serializer.
[cekk]


Expand Down
6 changes: 3 additions & 3 deletions src/design/plone/contenttypes/upgrades/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -796,11 +796,11 @@
</genericsetup:upgradeSteps>
<genericsetup:upgradeSteps
profile="design.plone.contenttypes:default"
source="7021"
destination="7022"
source="7022"
destination="7023"
>
<genericsetup:upgradeStep
title="Update PDC with new pdc_description field"
title="Update PDC with new pdc_description field (fix)"
handler=".upgrades.update_pdc_with_pdc_desc"
/>
</genericsetup:upgradeSteps>
Expand Down
4 changes: 4 additions & 0 deletions src/design/plone/contenttypes/upgrades/upgrades.py
Original file line number Diff line number Diff line change
Expand Up @@ -1572,6 +1572,10 @@ def update_pdc_with_pdc_desc(context):
if not v.get("pdc_desc", None):
v["pdc_desc"] = None
logger.info(f"Set pdc_desc for {pdc.absolute_url()}")

pdc.value_punto_contatto = value_punto_contatto

commit()
logger.info("Ends of update")


Expand Down

0 comments on commit d8fb433

Please sign in to comment.