Commit 47e774f1 authored by Ivan Tyagov's avatar Ivan Tyagov

Use dict in a similar way as 5e375564

parent 1eb18674
...@@ -3625,6 +3625,12 @@ class Base( CopyContainer, ...@@ -3625,6 +3625,12 @@ class Base( CopyContainer,
security.declareProtected(Permissions.ModifyPortalContent, 'setDefaultReindexParameters' ) security.declareProtected(Permissions.ModifyPortalContent, 'setDefaultReindexParameters' )
def setDefaultReindexParameters(self, **kw): def setDefaultReindexParameters(self, **kw):
warnings.warn('setDefaultReindexParameters is deprecated in favour of '
'setDefaultReindexParameterDict.', DeprecationWarning)
self.setDefaultReindexParameterDict(kw)
security.declareProtected(Permissions.ModifyPortalContent, 'setDefaultReindexParameterDict' )
def setDefaultReindexParameterDict(self, kw):
# This method sets the default keyword parameters to reindex. This is useful # This method sets the default keyword parameters to reindex. This is useful
# when you need to specify special parameters implicitly (e.g. to reindexObject). # when you need to specify special parameters implicitly (e.g. to reindexObject).
tv = getTransactionalVariable() tv = getTransactionalVariable()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment