Commit d303d65c authored by Sebastien Robin's avatar Sebastien Robin

with get_value, try to get the cell in the request, this is better than giving the request itself


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4007 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ca1c52de
......@@ -79,7 +79,11 @@ 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'): kw['cell'] = kw['REQUEST']
if kw.has_key('REQUEST') and not kw.get('cell'):
if getattr(kw['REQUEST'],'cell',None) is not None:
kw['cell'] = getattr(kw['REQUEST'],'cell')
else:
kw['cell'] = kw['REQUEST']
try:
value = tales_expr.__of__(self)(**kw)
except:
......
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