[Erp5-report] r43210 arnaud.fontaine - /erp5/trunk/products/ERP5Type/Utils.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Feb 9 07:46:31 CET 2011


Author: arnaud.fontaine
Date: Wed Feb  9 07:46:31 2011
New Revision: 43210

URL: http://svn.erp5.org?rev=43210&view=rev
Log:
A Dynamic Category Property is an Expression which may return a list
containing None, so just skip such case

Modified:
    erp5/trunk/products/ERP5Type/Utils.py

Modified: erp5/trunk/products/ERP5Type/Utils.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Utils.py?rev=43210&r1=43209&r2=43210&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Utils.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Utils.py [utf8] Wed Feb  9 07:46:31 2011
@@ -1308,6 +1308,11 @@ def getExistingBaseCategoryList(portal, 
 
   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]



More information about the Erp5-report mailing list