Commit ab2f9bdc authored by Łukasz Nowak's avatar Łukasz Nowak

Delete more in one transaction.

This is cheap operation.
parent 78f029df
......@@ -87,7 +87,7 @@ deleted = False\n
if context in module_list:\n
b = DateTime().timeTime()\n
id_list = [q.getId() for q in \\\n
portal.portal_catalog(parent_uid=context.getUid(), limit=20) if q.getRelativeUrl() not in BLACKLIST_RELATIVE_URL_LIST]\n
portal.portal_catalog(parent_uid=context.getUid(), limit=100) if q.getRelativeUrl() not in BLACKLIST_RELATIVE_URL_LIST]\n
if id_list:\n
deleted = True\n
context.deleteContent(id_list)\n
......
49
\ No newline at end of file
50
\ 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