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 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -86,8 +83,8 @@ for item in mixed_list:\n ...@@ -86,8 +83,8 @@ for item in mixed_list:\n
for fallback_category in base_category.getFallbackBaseCategoryList():\n for fallback_category in base_category.getFallbackBaseCategoryList():\n
fallback_category = ctool.restrictedTraverse(fallback_category, None)\n fallback_category = ctool.restrictedTraverse(fallback_category, None)\n
if fallback_category is not None and fallback_category.objectIds():\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 item_list.extend([(\'%s/%s\' % (item, x[0]), \'%s/%s\' % (item, x[1])) \\\n
fallback_category.getCategoryChildCompactLogicalPathItemList(base=1)]\n for x in fallback_category.getCategoryChildCompactLogicalPathItemList(base=1) if x[0]])\n
break\n break\n
\n \n
category_list.extend(item_list)\n category_list.extend(item_list)\n
......
543 544
\ 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