Commit 15d7ceea authored by Sebastien Robin's avatar Sebastien Robin

if was given to the tales expression a wrong cell because of a if(object)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9826 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a7ca7967
......@@ -85,12 +85,12 @@ def get_value(self, id, **kw):
# 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 not kw.get('cell'):
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')
else:
kw['cell'] = kw['REQUEST']
elif not kw.get('cell'):
elif kw.get('cell',None) is None:
if getattr(REQUEST,'cell',None) is not None:
kw['cell'] = getattr(REQUEST,'cell')
try:
......
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