Skip to content

Commit

Permalink
Remove customized rolemap and use default redturtle.prenotazioni role…
Browse files Browse the repository at this point in the history
…map. Booking manager should manage bookings without Editor role.
  • Loading branch information
cekk committed Nov 22, 2024
1 parent 8a2b9cf commit ce283cd
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Changelog
1.2.9 (unreleased)
------------------

- Nothing changed yet.
- Remove customized rolemap and use default redturtle.prenotazioni rolemap. Booking manager should manage bookings without Editor role.
[cekk]


1.2.8 (2024-10-17)
Expand Down
2 changes: 1 addition & 1 deletion src/design/plone/ioprenoto/profiles/default/metadata.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<version>1001</version>
<version>1002</version>
<dependencies>
<dependency>profile-redturtle.prenotazioni:default</dependency>
</dependencies>
Expand Down
14 changes: 0 additions & 14 deletions src/design/plone/ioprenoto/profiles/default/rolemap.xml

This file was deleted.

9 changes: 8 additions & 1 deletion src/design/plone/ioprenoto/upgrades/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
destination="1001"
handler=".upgrades.to_1001"
/>

<genericsetup:upgradeStep
title="Remove customized rolemap.xml and reload redturtle.prenotazioni one"
description=""
profile="design.plone.ioprenoto:default"
source="1001"
destination="1002"
handler=".upgrades.to_1002"
/>

</configure>
6 changes: 6 additions & 0 deletions src/design/plone/ioprenoto/upgrades/upgrades.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,9 @@ def to_1001(context):
folder.required_booking_fields = [
x for x in folder.required_booking_fields if x != "description"
]


def to_1002(context):
context.runImportStepFromProfile(
"profile-redturtle.prenotazioni:default", "rolemap", run_dependencies=True
)

0 comments on commit ce283cd

Please sign in to comment.