Skip to content

Commit 1dfa913

Browse files
black
1 parent b555fc7 commit 1dfa913

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/design/plone/contenttypes/upgrades/to_730x.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -202,18 +202,19 @@ def to_7312(context):
202202
def to_7313(context):
203203
logger.info("Update registry")
204204
context.runImportStepFromProfile(
205-
"profile-design.plone.contenttypes:to_7313",
206-
"plone.app.registry", False)
205+
"profile-design.plone.contenttypes:to_7313", "plone.app.registry", False
206+
)
207207

208208
logger.info("Add new effectiveend (DateRecurringIndex) index")
209+
209210
class extra:
210211
recurdef = "recurrence"
211212
until = ""
212213

213214
name = "effectiveend"
214215
catalog = api.portal.get_tool(name="portal_catalog")
215216

216-
if 'effectiveend' not in catalog.indexes():
217+
if "effectiveend" not in catalog.indexes():
217218
catalog.addIndex(name, "DateRecurringIndex", extra=extra())
218219
logger.info("Catalog DateRecurringIndex {} created.".format(name))
219220

0 commit comments

Comments
 (0)