60 self.w(u'<li><a href="%s">%s</a></li>' % ( |
60 self.w(u'<li><a href="%s">%s</a></li>' % ( |
61 action.url(), self._cw._(action.title))) |
61 action.url(), self._cw._(action.title))) |
62 self.w(u'</ul>') |
62 self.w(u'</ul>') |
63 |
63 |
64 def startup_views(self): |
64 def startup_views(self): |
65 views = self._cw.vreg['views'].possible_views(self._cw, None) |
65 views = [v for v in self._cw.vreg['views'].possible_views(self._cw, None) |
|
66 if v.category == 'startupview' |
|
67 or v.__regid__ not in self.skip_startup_views] |
66 if not views: |
68 if not views: |
67 return |
69 return |
68 self.w(u'<div class="hr"> </div>') |
70 self.w(u'<div class="hr"> </div>') |
69 self.w(u'<h2>%s</h2>\n' % self._cw._('Startup views')) |
71 self.w(u'<h2>%s</h2>\n' % self._cw._('Startup views')) |
70 self.w(u'<ul class="startup">') |
72 self.w(u'<ul class="startup">') |
71 for v in sorted(views, key=lambda x: self._cw._(x.title)): |
73 for v in sorted(views, key=lambda x: self._cw._(x.title)): |
72 if v.category != 'startupview' or v.__regid__ in self.skip_startup_views: |
|
73 continue |
|
74 self.w('<li><a href="%s">%s</a></li>' % ( |
74 self.w('<li><a href="%s">%s</a></li>' % ( |
75 xml_escape(v.url()), xml_escape(self._cw._(v.title).capitalize()))) |
75 xml_escape(v.url()), xml_escape(self._cw._(v.title).capitalize()))) |
76 self.w(u'</ul>') |
76 self.w(u'</ul>') |
77 |
77 |
78 def entities(self): |
78 def entities(self): |