web/views/debug.py
changeset 9034 cc3442054e48
parent 8718 9e7847dcbd94
child 9670 5b661f58978c
equal deleted inserted replaced
9033:614bf73cc126 9034:cc3442054e48
    95         # repository information
    95         # repository information
    96         repo = req.vreg.config.repository(None)
    96         repo = req.vreg.config.repository(None)
    97         w(u'<h2>%s</h2>' % _('Repository'))
    97         w(u'<h2>%s</h2>' % _('Repository'))
    98         w(u'<h3>%s</h3>' % _('resources usage'))
    98         w(u'<h3>%s</h3>' % _('resources usage'))
    99         w(u'<table>')
    99         w(u'<table>')
   100         stats = repo.stats()
   100         stats = self._cw.call_service('repo_stats')
   101         for element in sorted(stats):
   101         for element in sorted(stats):
   102             w(u'<tr><th align="left">%s</th><td>%s %s</td></tr>'
   102             w(u'<tr><th align="left">%s</th><td>%s %s</td></tr>'
   103                    % (element, xml_escape(unicode(stats[element])),
   103                    % (element, xml_escape(unicode(stats[element])),
   104                       element.endswith('percent') and '%' or '' ))
   104                       element.endswith('percent') and '%' or '' ))
   105         w(u'</table>')
   105         w(u'</table>')