Commit 476955a0 authored by Fabien Morin's avatar Fabien Morin

modify to have an empty item in the list to permit to chose nothing in a...

modify to have an empty item in the list to permit to chose nothing in a multilist field instead of have the path of the base category

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17134 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2bec6f7f
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -86,8 +83,8 @@ for item in mixed_list:\n
for fallback_category in base_category.getFallbackBaseCategoryList():\n
fallback_category = ctool.restrictedTraverse(fallback_category, None)\n
if fallback_category is not None and fallback_category.objectIds():\n
item_list = [(\'%s/%s\' % (item, x[0]), \'%s/%s\' % (item, x[1])) for x in\n
fallback_category.getCategoryChildCompactLogicalPathItemList(base=1)]\n
item_list.extend([(\'%s/%s\' % (item, x[0]), \'%s/%s\' % (item, x[1])) \\\n
for x in fallback_category.getCategoryChildCompactLogicalPathItemList(base=1) if x[0]])\n
break\n
\n
category_list.extend(item_list)\n
......
543
\ No newline at end of file
544
\ 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