[adapters compat] make implements_adapter_compat selector compatible with attributes
--- 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