# HG changeset patch # User Sylvain Thénault # Date 1284471342 -7200 # Node ID ae97a8c818e5c33599701a1cfea599a29ed73361 # Parent 612b7d947a4cd88209ad47ed2f26febb980b53bb [primary view] don't need to pick arbitrary target, this is properly handled by the rtag diff -r 612b7d947a4c -r ae97a8c818e5 web/views/primary.py --- a/web/views/primary.py Tue Sep 14 15:33:28 2010 +0200 +++ b/web/views/primary.py Tue Sep 14 15:35:42 2010 +0200 @@ -234,10 +234,7 @@ if section == where: matchtschemas.append(tschema) if matchtschemas: - # XXX pick the latest dispctrl - dispctrl = self.display_ctrl.etype_get(eschema, rschema, role, - matchtschemas[-1]) - + dispctrl = self.display_ctrl.etype_get(eschema, rschema, role, '*') rdefs.append( (rschema, matchtschemas, role, dispctrl) ) return sorted(rdefs, key=lambda x: x[-1]['order'])