Commit 9a465c21 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Use of .aq_inner.aq_parent instead of .aq_parent whenever we want to get the container

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12072 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a16017d2
......@@ -64,11 +64,9 @@ def get_value(self, id, **kw):
REQUEST = get_request()
form = self.aq_parent # XXX (JPS) form for default is wrong apparently in listbox - double check
object = getattr(form, 'aq_parent', None)
if object:
# NEEDS TO BE CHECKED
# container = object.aq_inner.aq_parent ORIGINAL VERSION - not so good ?
container = object.aq_parent
#container = object.getParentNode()
if object is not None:
container = object.aq_inner.aq_parent
#container = object.aq_parent # This was the version used for long - I see no reason to do this
else:
container = None
kw['field'] = self
......
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