Commit 3ba11d28 authored by Arnaud Fontaine's avatar Arnaud Fontaine

A Dynamic Category Property is an Expression which may return a list

containing None, so just skip such case


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43210 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6276d51d
......@@ -1308,6 +1308,11 @@ def getExistingBaseCategoryList(portal, base_cat_list):
new_base_cat_list = []
for base_cat in base_cat_list:
if base_cat is None:
# a Dynamic Category Property specifies a TALES Expression which
# may return a list containing None, so just skip it
continue
key = (base_cat,)
try:
value = cache[key]
......
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