[schema view] fix label/name inversion leading to wrong css class / group url depending on user's language stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 20 Sep 2011 09:20:17 +0200
branchstable
changeset 7811 c468ff909e98
parent 7806 aa30c665bd06
child 7813 89ab98c4aaab
[schema view] fix label/name inversion leading to wrong css class / group url depending on user's language
web/views/schema.py
--- a/web/views/schema.py	Fri Sep 16 16:42:42 2011 +0200
+++ b/web/views/schema.py	Tue Sep 20 09:20:17 2011 +0200
@@ -102,7 +102,7 @@
             # XXX get group entity and call it's incontext view
             groups = [u'<a class="%s" href="%s">%s</a>' % (
                 group, self._cw.build_url('cwgroup/%s' % group), label)
-                      for group, label in sorted((_(g), g) for g in groups)]
+                      for label, group in sorted((_(g), g) for g in groups)]
             w(u'<br/>'.join(groups))
             w(u'</td><td>')
             w(u'<br/>'.join(rqlexprs))