Commit 4a59e923 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Pass self to getTransactionalVariable.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13818 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 781e79ef
...@@ -102,7 +102,7 @@ class ActiveObject(ExtensionClass.Base): ...@@ -102,7 +102,7 @@ class ActiveObject(ExtensionClass.Base):
kw[k] = v kw[k] = v
# Get default parameters from a transactional variable. # Get default parameters from a transactional variable.
tv = getTransactionalVariable() tv = getTransactionalVariable(self)
key = ('default_activate_parameter', id(aq_base(self))) key = ('default_activate_parameter', id(aq_base(self)))
try: try:
for k, v in tv[key].iteritems(): for k, v in tv[key].iteritems():
...@@ -193,7 +193,7 @@ class ActiveObject(ExtensionClass.Base): ...@@ -193,7 +193,7 @@ class ActiveObject(ExtensionClass.Base):
def setDefaultActivateParameters(self, **kw): def setDefaultActivateParameters(self, **kw):
# This method sets the default keyword parameters to activate. This is useful # This method sets the default keyword parameters to activate. 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(self)
key = ('default_activate_parameter', id(aq_base(self))) key = ('default_activate_parameter', id(aq_base(self)))
tv[key] = kw tv[key] = kw
...@@ -201,7 +201,7 @@ class ActiveObject(ExtensionClass.Base): ...@@ -201,7 +201,7 @@ class ActiveObject(ExtensionClass.Base):
def getDefaultActivateParameterDict(self): def getDefaultActivateParameterDict(self):
# This method returns default activate parameters to self. # This method returns default activate parameters to self.
# The result can be either a dict object or None. # The result can be either a dict object or None.
tv = getTransactionalVariable() tv = getTransactionalVariable(self)
key = ('default_activate_parameter', id(aq_base(self))) key = ('default_activate_parameter', id(aq_base(self)))
return tv.get(key) 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