diff --git a/product/CMFActivity/ActiveObject.py b/product/CMFActivity/ActiveObject.py index 4deafdc57c4338bcdca71a249329bcea427e840c..237bb2dbf07c3472ac1c3ace281472b5cf8ad269 100644 --- a/product/CMFActivity/ActiveObject.py +++ b/product/CMFActivity/ActiveObject.py @@ -195,4 +195,13 @@ class ActiveObject(ExtensionClass.Base): # when you need to specify special parameters implicitly (e.g. to reindexObject). tv = getTransactionalVariable() key = ('default_activate_parameter', id(aq_base(self))) - tv[key] = kw \ No newline at end of file + tv[key] = kw + + security.declareProtected( permissions.View, 'getDefaultActivateParameterDict' ) + def getDefaultActivateParameterDict(self): + # This method returns default activate parameters to self. + # The result can be either a dict object or None. + tv = getTransactionalVariable() + key = ('default_activate_parameter', id(aq_base(self))) + return tv.get(key) +