web/views/primary.py
branchstable
changeset 6234 ae97a8c818e5
parent 6113 dbe17a3ebb9f
child 6235 d5f7bd102282
--- 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'])