[Erp5-report] r30309 - /erp5/trunk/products/ERP5Type/Core/ActionInformation.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Nov 4 18:15:13 CET 2009


Author: jm
Date: Wed Nov  4 18:15:08 2009
New Revision: 30309

URL: http://svn.erp5.org?rev=30309&view=rev
Log:
CacheableAction: return action title in both 'name' and 'title'

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

Modified: erp5/trunk/products/ERP5Type/Core/ActionInformation.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Core/ActionInformation.py?rev=30309&r1=30308&r2=30309&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Core/ActionInformation.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Core/ActionInformation.py [utf8] Wed Nov  4 18:15:08 2009
@@ -154,6 +154,7 @@
   test_permission = None
 
   def __init__(self, **kw):
+    kw['title'] = kw['name'] # XXX compatibility
     for attr in 'action', 'icon', 'condition':
       expression = kw.pop(attr, None)
       setattr(self, attr, expression and Expression(expression))




More information about the Erp5-report mailing list