web/views/cwsources.py
branchstable
changeset 7852 cb3f700399b2
parent 7847 7be550fb337b
child 7935 28fe0b91ad8a
equal deleted inserted replaced
7851:54e6abed520a 7852:cb3f700399b2
   261            'S latest_retrieval SD, S parser SP')
   261            'S latest_retrieval SD, S parser SP')
   262     title = _('data sources management')
   262     title = _('data sources management')
   263 
   263 
   264     def call(self, **kwargs):
   264     def call(self, **kwargs):
   265         self.w('<h1>%s</h1>' % self._cw._(self.title))
   265         self.w('<h1>%s</h1>' % self._cw._(self.title))
   266         eschema = self._cw.vreg.schema.eschema('CWSource')
   266         self.w(add_etype_button(self._cw, 'CWSource'))
   267         if eschema.has_perm(self._cw, 'add'):
   267         self.w(u'<div class="clear"></div>')
   268             self.w(u'<a href="%s" class="addButton right">%s</a>' % (
       
   269                 self._cw.build_url('add/%s' % eschema),
       
   270                 self._cw._('add a CWSource')))
       
   271             self.w(u'<div class="clear"></div>')
       
   272         self.wview('table', self._cw.execute(self.rql), displaycols=range(4))
   268         self.wview('table', self._cw.execute(self.rql), displaycols=range(4))
   273 
   269 
   274 
   270 
   275 # breadcrumbs configuration ####################################################
   271 # breadcrumbs configuration ####################################################
   276 
   272