Commit 6c8a49a2 authored by Roque's avatar Roque

Removing action information patch

parent 3d26e926
...@@ -188,11 +188,8 @@ class CacheableAction(object): ...@@ -188,11 +188,8 @@ class CacheableAction(object):
def cook(self, ec): def cook(self, ec):
param_dict = self.param_dict.copy() param_dict = self.param_dict.copy()
try: action = self.action
action = self.action param_dict['url'] = action is not None and action(ec) or ''
param_dict['url'] = action is not None and action(ec) or '' icon = self.icon
icon = self.icon param_dict['icon'] = icon is not None and icon(ec) or ''
param_dict['icon'] = icon is not None and icon(ec) or ''
except KeyError:
pass
return param_dict return param_dict
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