From 15d7ceeabcf149478226d3da314938698dc3f0e9 Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Tue, 12 Sep 2006 07:50:00 +0000 Subject: [PATCH] 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 --- product/ERP5Form/Form.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product/ERP5Form/Form.py b/product/ERP5Form/Form.py index 94e6dde3e3..27fa23a647 100644 --- a/product/ERP5Form/Form.py +++ b/product/ERP5Form/Form.py @@ -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: -- 2.30.9