[schema view] fix label/name inversion leading to wrong css class / group url depending on user's language
--- 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))