equal
deleted
inserted
replaced
95 def startup_views(self): |
95 def startup_views(self): |
96 self.w(u'<h4>%s</h4>\n' % self._cw._('Startup views')) |
96 self.w(u'<h4>%s</h4>\n' % self._cw._('Startup views')) |
97 self.startupviews_table() |
97 self.startupviews_table() |
98 |
98 |
99 def startupviews_table(self): |
99 def startupviews_table(self): |
100 for v in self._cw.vreg['views'].possible_views(self._cw, None): |
100 views = self._cw.vreg['views'].possible_views(self._cw, None) |
|
101 for v in sorted(views, key=lambda x: self._cw._(x.title)): |
101 if v.category != 'startupview' or v.__regid__ in ('index', 'tree', 'manage'): |
102 if v.category != 'startupview' or v.__regid__ in ('index', 'tree', 'manage'): |
102 continue |
103 continue |
103 self.w('<p><a href="%s">%s</a></p>' % ( |
104 self.w('<p><a href="%s">%s</a></p>' % ( |
104 xml_escape(v.url()), xml_escape(self._cw._(v.title).capitalize()))) |
105 xml_escape(v.url()), xml_escape(self._cw._(v.title).capitalize()))) |
105 |
106 |