# HG changeset patch # User Sylvain Thénault # Date 1296227962 -3600 # Node ID c41336a682edb37d052c58142d5a82231c875e9a # Parent 8fd6921f3e7c8dee442952e40915eee53f61f1b3 [ibreadcrumb] fix breadcrumb adapter backward compat diff -r 8fd6921f3e7c -r c41336a682ed web/views/ibreadcrumbs.py --- a/web/views/ibreadcrumbs.py Fri Jan 28 16:08:40 2011 +0100 +++ b/web/views/ibreadcrumbs.py Fri Jan 28 16:19:22 2011 +0100 @@ -52,7 +52,7 @@ __select__ = is_instance('Any', accept_none=False) def parent_entity(self): - if hasattr(self.entity, 'parent'): + if hasattr(self.entity, 'parent') and callable(self.entity.parent): warn('[3.9] parent() method is deprecated, define a ' 'custom IBreadCrumbsAdapter/ITreeAdapter for %s instead' % self.entity.__class__, DeprecationWarning)