File tree 1 file changed +4
-3
lines changed
src/design/plone/contenttypes/upgrades
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -202,18 +202,19 @@ def to_7312(context):
202
202
def to_7313 (context ):
203
203
logger .info ("Update registry" )
204
204
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
+ )
207
207
208
208
logger .info ("Add new effectiveend (DateRecurringIndex) index" )
209
+
209
210
class extra :
210
211
recurdef = "recurrence"
211
212
until = ""
212
213
213
214
name = "effectiveend"
214
215
catalog = api .portal .get_tool (name = "portal_catalog" )
215
216
216
- if ' effectiveend' not in catalog .indexes ():
217
+ if " effectiveend" not in catalog .indexes ():
217
218
catalog .addIndex (name , "DateRecurringIndex" , extra = extra ())
218
219
logger .info ("Catalog DateRecurringIndex {} created." .format (name ))
219
220
You can’t perform that action at this time.
0 commit comments