web/views/startup.py
branchstable
changeset 5530 da21e3fbe240
parent 5424 8ecbcbff9777
child 5545 25fd74c23f91
child 5839 53cbdc5e0426
equal deleted inserted replaced
5529:7446f5807b33 5530:da21e3fbe240
    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