Commit fd046dc0 authored by Jérome Perrin's avatar Jérome Perrin

Prevent some errors when getFunction returns None

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17907 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent adc321d8
...@@ -72,7 +72,7 @@ function if the function is a node in the function tree (this happens when\n ...@@ -72,7 +72,7 @@ function if the function is a node in the function tree (this happens when\n
function is acquired from the subordination organisation).\n function is acquired from the subordination organisation).\n
\'\'\'\n \'\'\'\n
function_value = context.getFunctionValue()\n function_value = context.getFunctionValue()\n
if len(function_value):\n if function_value is None or len(function_value):\n
return None\n return None\n
return context.getFunction()\n return context.getFunction()\n
</string> </value> </string> </value>
...@@ -118,10 +118,10 @@ return context.getFunction()\n ...@@ -118,10 +118,10 @@ return context.getFunction()\n
<value> <value>
<tuple> <tuple>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>function_value</string> <string>function_value</string>
<string>len</string>
<string>None</string> <string>None</string>
<string>len</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
234 235
\ No newline at end of file \ No newline at end of file
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