web/views/management.py
changeset 9034 cc3442054e48
parent 8666 1dd655788ece
child 10309 35bf741203d6
child 10390 0bbd211cf4d7
equal deleted inserted replaced
9033:614bf73cc126 9034:cc3442054e48
   179     content_type = 'text/plain'
   179     content_type = 'text/plain'
   180     templatable = False
   180     templatable = False
   181     __select__ = none_rset() & match_user_groups('users', 'managers')
   181     __select__ = none_rset() & match_user_groups('users', 'managers')
   182 
   182 
   183     def call(self):
   183     def call(self):
   184         stats = self._cw.vreg.config.repository(None).stats()
   184         stats = self._cw.call_service('repo_stats')
   185         results = []
   185         results = []
   186         for element in stats:
   186         for element in stats:
   187             results.append(u'%s %s' % (element, stats[element]))
   187             results.append(u'%s %s' % (element, stats[element]))
   188         self.w(u'\n'.join(results))
   188         self.w(u'\n'.join(results))