[Erp5-report] r45083 yusei - /erp5/trunk/products/ERP5Type/ERP5Type.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Apr 5 11:58:49 CEST 2011


Author: yusei
Date: Tue Apr  5 11:58:49 2011
New Revision: 45083

URL: http://svn.erp5.org?rev=45083&view=rev
Log:
action['category'] may be None.

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

Modified: erp5/trunk/products/ERP5Type/ERP5Type.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/ERP5Type.py?rev=45083&r1=45082&r2=45083&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/ERP5Type.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/ERP5Type.py [utf8] Tue Apr  5 11:58:49 2011
@@ -568,7 +568,8 @@ class ERP5TypeInformation(XMLObject,
       ec = createExpressionContext(ob)
       other_action = None
       for action in self.getActionList():
-        if action['id'] == view or action['category'].endswith('_' + view):
+        if action['id'] == view or (action['category'] is not None and
+                                    action['category'].endswith('_' + view)):
           if action.test(ec):
             break
         elif other_action is None:



More information about the Erp5-report mailing list