Commit 550cdf22 authored by Łukasz Nowak's avatar Łukasz Nowak

- check more folders in portal

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26360 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 78abc7a6
...@@ -82,7 +82,6 @@ if relative_url:\n ...@@ -82,7 +82,6 @@ if relative_url:\n
depth = len(relative_url.split(\'/\'))\n depth = len(relative_url.split(\'/\'))\n
else:\n else:\n
depth = 0\n depth = 0\n
\n
maximum_depth = 1\n maximum_depth = 1\n
\n \n
assert depth <= maximum_depth\n assert depth <= maximum_depth\n
...@@ -114,7 +113,16 @@ else:\n ...@@ -114,7 +113,16 @@ else:\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 id_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\'))\n id_list = tuple(x for x in id_list if x.endswith(\'_module\') or x in [\n
\'portal_alarms\',\n
\'portal_categories\',\n
\'portal_deliveries\',\n
\'portal_orders\',\n
\'portal_preferences\',\n
\'portal_simulation\',\n
\'portal_templates\',\n
\'portal_trash\',\n
])\n
else:\n else:\n
from DateTime import DateTime\n from DateTime import DateTime\n
id_list = []\n id_list = []\n
......
1149 1150
\ 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