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
...@@ -196,3 +196,12 @@ class ActiveObject(ExtensionClass.Base): ...@@ -196,3 +196,12 @@ class ActiveObject(ExtensionClass.Base):
tv = getTransactionalVariable() tv = getTransactionalVariable()
key = ('default_activate_parameter', id(aq_base(self))) key = ('default_activate_parameter', id(aq_base(self)))
tv[key] = kw 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