equal
deleted
inserted
replaced
71 |
71 |
72 def create_links(self): |
72 def create_links(self): |
73 self.w(u'<ul class="createLink">') |
73 self.w(u'<ul class="createLink">') |
74 for etype in self.add_etype_links: |
74 for etype in self.add_etype_links: |
75 eschema = self.schema.eschema(etype) |
75 eschema = self.schema.eschema(etype) |
76 if eschema.has_perm(self.req, 'add'): |
76 if eschema.has_perm(self._cw, 'add'): |
77 self.w(u'<li><a href="%s">%s</a></li>' % ( |
77 self.w(u'<li><a href="%s">%s</a></li>' % ( |
78 self.req.build_url('add/%s' % eschema), |
78 self._cw.build_url('add/%s' % eschema), |
79 self.req.__('add a %s' % eschema).capitalize())) |
79 self._cw.__('add a %s' % eschema).capitalize())) |
80 self.w(u'</ul>') |
80 self.w(u'</ul>') |
81 |
81 |
82 def startup_views(self): |
82 def startup_views(self): |
83 self.w(u'<h4>%s</h4>\n' % self._cw._('Startup views')) |
83 self.w(u'<h4>%s</h4>\n' % self._cw._('Startup views')) |
84 self.startupviews_table() |
84 self.startupviews_table() |