[PATCH 1 of 2 seda] [views] Drop useless predicate

Sylvain Thenault sylvain.thenault at logilab.fr
Fri Mar 17 10:43:39 CET 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1489733711 -3600
#      Fri Mar 17 07:55:11 2017 +0100
# Node ID fb14664bb28e62a004853b8320c8f69f72583a90
# Parent  1f8ac02bbb5072c28de15149d30867731cc6d10c
[views] Drop useless predicate

it's already in parent's selector.

diff --git a/cubicweb_seda/views/sedatree.py b/cubicweb_seda/views/sedatree.py
--- a/cubicweb_seda/views/sedatree.py
+++ b/cubicweb_seda/views/sedatree.py
@@ -14,22 +14,21 @@
 # You should have received a copy of the GNU Lesser General Public License along
 # with this program. If not, see <http://www.gnu.org/licenses/>.
 """cubicweb-seda views for ArchiveUnit"""
 
 from cubicweb import _
-from cubicweb.predicates import adaptable, is_instance, one_line_rset
+from cubicweb.predicates import adaptable, is_instance
 from cubicweb.web import component
 
 from ..entities import simplified_profile, component_unit
 from . import jqtree
 
 
 class ProfileTreeComponent(component.EntityCtxComponent):
     """Display the whole profile tree."""
     __regid__ = 'seda.tree'
     __select__ = (component.EntityCtxComponent.__select__
-                  & one_line_rset()
                   & adaptable('ITreeBase'))
     context = 'left'
     order = -1
     title = _('SEDA profile tree')
 


More information about the saem-devel mailing list