Skip to content

Commit

Permalink
setuphandler
Browse files Browse the repository at this point in the history
  • Loading branch information
mamico committed Jan 30, 2024
1 parent fe8ecfd commit 405a95b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/redturtle/volto/upgrades.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from plone.app.upgrade.utils import installOrReinstallProduct
from plone.dexterity.utils import iterSchemata
from plone.restapi.behaviors import IBlocks
from redturtle.volto.setuphandlers import remove_custom_googlebot
from uuid import uuid4
from zope.schema import getFields

Expand Down Expand Up @@ -476,6 +477,8 @@ def to_4301(context):


def to_4302(context):
remove_custom_googlebot(context)

brains = api.content.find(portal_type="Event")
logger.info("Reindexing {} Events".format(len(brains)))

Expand Down
2 changes: 1 addition & 1 deletion src/redturtle/volto/upgrades.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
profile="redturtle.volto:default"
source="4300"
destination="4301"
handler=".setuphandlers.remove_custom_googlebot"
handler=".upgrades.to_4301"
/>

<genericsetup:upgradeStep
Expand Down

0 comments on commit 405a95b

Please sign in to comment.