Commit d7976bdf authored by Sebastien Robin's avatar Sebastien Robin

fixed a strange bug with the expression return here is not None and here or...

fixed a strange bug with the expression return here is not None and here or self.getForm().aq_parent

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10078 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b35a5ce4
...@@ -460,8 +460,10 @@ class ListBoxRenderer: ...@@ -460,8 +460,10 @@ class ListBoxRenderer:
def getContext(self): def getContext(self):
"""Return the context of rendering this ListBox. """Return the context of rendering this ListBox.
""" """
here = self.request.get('here') value = self.request.get('here')
return here is not None and here or self.getForm().aq_parent if value is None:
value = self.getForm().aq_parent
return value
getContext = VolatileCachingMethod(getContext) getContext = VolatileCachingMethod(getContext)
......
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