Commit 1545448e authored by Yoshinori Okuji's avatar Yoshinori Okuji

Even if REQUEST is contained in the parameters, assume that it is not really passed, when None.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31149 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 543ee982
......@@ -176,9 +176,9 @@ class TALESValue(StaticValue):
# This allows to pass some pointer to the local object
# through the REQUEST parameter. Not very clean.
# Used by ListBox to render different items in a list
if kw.has_key('REQUEST') and kw.get('cell', None) is None:
if getattr(kw['REQUEST'],'cell', None) is not None:
kw['cell'] = getattr(kw['REQUEST'],'cell')
if kw.get('REQUEST', None) is not None and kw.get('cell', None) is None:
if getattr(kw['REQUEST'], 'cell', None) is not None:
kw['cell'] = getattr(kw['REQUEST'], 'cell')
else:
kw['cell'] = kw['REQUEST']
elif kw.get('cell', None) is None:
......
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