Commit ccfa133e authored by Yoshinori Okuji's avatar Yoshinori Okuji

Add getDefaultActivateParameterDict.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13814 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8c1bd2a2
......@@ -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)
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