# HG changeset patch # User Sylvain Thénault # Date 1274110252 -7200 # Node ID da21e3fbe2400762f20916399bcb83f2f3e9e9fe # Parent 7446f5807b33f05b950acb4fc1db7b73be7ab3dd [startup view] sort startup views by alphabetical order diff -r 7446f5807b33 -r da21e3fbe240 web/views/startup.py --- a/web/views/startup.py Mon May 17 17:30:28 2010 +0200 +++ b/web/views/startup.py Mon May 17 17:30:52 2010 +0200 @@ -97,7 +97,8 @@ self.startupviews_table() def startupviews_table(self): - for v in self._cw.vreg['views'].possible_views(self._cw, None): + views = self._cw.vreg['views'].possible_views(self._cw, None) + for v in sorted(views, key=lambda x: self._cw._(x.title)): if v.category != 'startupview' or v.__regid__ in ('index', 'tree', 'manage'): continue self.w('

%s

' % (