# HG changeset patch # User Sylvain Thénault # Date 1317022304 -7200 # Node ID cb3f700399b27d6a634bc5e0decc8268a22bdc07 # Parent 54e6abed520a43d5724063b8b706d2940ca61e07 [schema, cleanup] one more case for add_etype_button 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))