Commit 94c114f8 authored by Julien Muchembled's avatar Julien Muchembled

CacheableAction: return action title in both 'name' and 'title'

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30309 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent af8946d5
......@@ -154,6 +154,7 @@ class CacheableAction(object):
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))
......
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