diff -r 54e6abed520a -r cb3f700399b2 web/views/cwsources.py --- a/web/views/cwsources.py Mon Sep 26 09:31:09 2011 +0200 +++ b/web/views/cwsources.py Mon Sep 26 09:31:44 2011 +0200 @@ -263,12 +263,8 @@ def call(self, **kwargs): self.w('

%s

' % self._cw._(self.title)) - eschema = self._cw.vreg.schema.eschema('CWSource') - if eschema.has_perm(self._cw, 'add'): - self.w(u'%s' % ( - self._cw.build_url('add/%s' % eschema), - self._cw._('add a CWSource'))) - self.w(u'
') + self.w(add_etype_button(self._cw, 'CWSource')) + self.w(u'
') self.wview('table', self._cw.execute(self.rql), displaycols=range(4))