Commit 56fc52b5 authored by Serge S. Koval's avatar Serge S. Koval

Fixed property binding

parent d7cb58ce
......@@ -61,7 +61,9 @@ class ActionsMixin(object):
self._actions.append((name, text))
# TODO: Use namedtuple
self._actions_data[name] = (attr, text, desc)
# Reason why we need getattr here - what's in attr is not
# bound to the object.
self._actions_data[name] = (getattr(self, p), text, desc)
def is_action_allowed(self, name):
"""
......
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