Commit 5ea5db0c authored by Aurel's avatar Aurel

prevent aquisition when doing getObject() on cells


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4580 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c41547b9
...@@ -1595,7 +1595,7 @@ onChange="submitAction(this.form,'%s/portal_selections/setReportRoot')"> ...@@ -1595,7 +1595,7 @@ onChange="submitAction(this.form,'%s/portal_selections/setReportRoot')">
if tales_expr: if tales_expr:
# #
real_o = o real_o = o
if hasattr(o,'getObject'): # we have a line of sql result if hasattr(aq_base(o),'getObject'): # we have a line of sql result
real_o = o.getObject() real_o = o.getObject()
field_kw = {'cell':real_o} field_kw = {'cell':real_o}
attribute_value = my_field.__of__(real_o).get_value('default',**field_kw) attribute_value = my_field.__of__(real_o).get_value('default',**field_kw)
......
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