web/views/debug.py
changeset 10662 10942ed172de
parent 10574 6a07c2dc3d85
child 10666 7f6b5f023884
equal deleted inserted replaced
10661:e6eb0c7c2e98 10662:10942ed172de
   168         for key in keys:
   168         for key in keys:
   169             if key in ('boxes', 'contentnavigation'): # those are bw compat registries
   169             if key in ('boxes', 'contentnavigation'): # those are bw compat registries
   170                 continue
   170                 continue
   171             self.w(u'<h3 id="%s">%s</h3>' % (key, key))
   171             self.w(u'<h3 id="%s">%s</h3>' % (key, key))
   172             if self._cw.vreg[key]:
   172             if self._cw.vreg[key]:
   173                 values = sorted(self._cw.vreg[key].iteritems())
   173                 values = sorted(self._cw.vreg[key].items())
   174                 self.wview('pyvaltable', pyvalue=[(key, xml_escape(repr(val)))
   174                 self.wview('pyvaltable', pyvalue=[(key, xml_escape(repr(val)))
   175                                                   for key, val in values])
   175                                                   for key, val in values])
   176             else:
   176             else:
   177                 self.w(u'<p>Empty</p>\n')
   177                 self.w(u'<p>Empty</p>\n')
   178 
   178