Commit 21aaeca8 authored by Nicolas Delaby's avatar Nicolas Delaby

Performance improvement for ERP5Site_checkDataWithScript

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29127 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 41ff8687
...@@ -111,7 +111,8 @@ if depth == maximum_depth and id_list:\n ...@@ -111,7 +111,8 @@ if depth == maximum_depth and id_list:\n
else:\n else:\n
if id_list is None:\n if id_list is None:\n
if full or not getattr(document, \'isHBTree\', lambda: 0)():\n if full or not getattr(document, \'isHBTree\', lambda: 0)():\n
id_list = document.objectIds()\n #Cast in list to avoid accessing ZODB objects for each iteration\n
id_list = list(document.objectIds())\n
if not depth:\n if not depth:\n
id_list = tuple(x for x in id_list if x.endswith(\'_module\') or x in [\n id_list = tuple(x for x in id_list if x.endswith(\'_module\') or x in [\n
\'portal_alarms\',\n \'portal_alarms\',\n
...@@ -213,6 +214,7 @@ else:\n ...@@ -213,6 +214,7 @@ else:\n
<string>id</string> <string>id</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>getattr</string> <string>getattr</string>
<string>list</string>
<string>tuple</string> <string>tuple</string>
<string>DateTime</string> <string>DateTime</string>
<string>xrange</string> <string>xrange</string>
......
1302 1303
\ 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