web/views/management.py
branchstable
changeset 4713 785299dfc2c0
parent 4706 6035e96b64dd
child 4714 fccda6dd91bf
equal deleted inserted replaced
4712:8dd774c9c3bb 4713:785299dfc2c0
   350     content_type = 'text/txt'
   350     content_type = 'text/txt'
   351     templatable = False
   351     templatable = False
   352     __select__ = none_rset() & match_user_groups('users', 'managers')
   352     __select__ = none_rset() & match_user_groups('users', 'managers')
   353 
   353 
   354     def call(self):
   354     def call(self):
   355         _ = self._cw._
       
   356         stats = self._cw.vreg.config.repository(None).stats()
   355         stats = self._cw.vreg.config.repository(None).stats()
   357         results = []
   356         results = []
   358         for element in stats:
   357         for element in stats:
   359             results.append('%s %s' % (element, stats[element]))
   358             results.append(u'%s %s' % (element, stats[element]))
   360         self.w(u"%s" % _('\n'.join(results)))
   359         self.w(u'\n'.join(results))