Commit 50170af0 authored by Julien Muchembled's avatar Julien Muchembled

ERP5Site_checkDataWithScript: allow called script to return None.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26543 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fed08b3e
......@@ -95,7 +95,7 @@ if depth == maximum_depth and id_list:\n
if method_kw is None:\n
method_kw = {}\n
def recurse(document):\n
error_list.extend(getattr(document, method_id)(**method_kw))\n
error_list.extend(getattr(document, method_id)(**method_kw) or ())\n
if recursive:\n
for subdocument in document.objectValues():\n
recurse(subdocument)\n
......
1162
\ No newline at end of file
1163
\ 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