changeset 5571 | 5d024bf9424b |
parent 5556 | 9ab2b4c74baf |
child 5679 | 0f2ded880d01 |
--- a/view.py Fri May 21 15:04:56 2010 +0200 +++ b/view.py Fri May 21 15:05:44 2010 +0200 @@ -547,7 +547,10 @@ '%s for %s instead' % (func.__name__, iface, entity.__class__), DeprecationWarning) - return getattr(entity, func.__name__)(*args, **kwargs) + member = getattr(entity, func.__name__) + if callable(member): + return member(*args, **kwargs) + return member return func(self, *args, **kwargs) return decorated return _pre39_compat