[wf component] reversing selectors here may be a huge performance win on big rsets, since EntityVComponent selector starts with one_line_rset stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 28 Sep 2010 18:53:45 +0200
branchstable
changeset 6354 73bf870d37d5
parent 6353 b622602f8e9d
child 6355 b4ca544ceff0
[wf component] reversing selectors here may be a huge performance win on big rsets, since EntityVComponent selector starts with one_line_rset
web/views/workflow.py
--- a/web/views/workflow.py	Tue Sep 28 16:52:45 2010 +0200
+++ b/web/views/workflow.py	Tue Sep 28 18:53:45 2010 +0200
@@ -163,7 +163,7 @@
 class WFHistoryVComponent(component.EntityVComponent):
     """display the workflow history for entities supporting it"""
     __regid__ = 'wfhistory'
-    __select__ = WFHistoryView.__select__ & component.EntityVComponent.__select__
+    __select__ = component.EntityVComponent.__select__ & WFHistoryView.__select__
     context = 'navcontentbottom'
     title = _('Workflow history')