web/views/startup.py
changeset 2775 bd4e61e3a600
parent 2754 1db51bb55b45
child 2780 ad1dfc3855b0
equal deleted inserted replaced
2757:c8e28e1754f0 2775:bd4e61e3a600
   166         """The default view representing the instance's management"""
   166         """The default view representing the instance's management"""
   167         self.w(u'<h1>%s</h1>' % _("Registry's content"))
   167         self.w(u'<h1>%s</h1>' % _("Registry's content"))
   168         keys = sorted(self.vreg)
   168         keys = sorted(self.vreg)
   169         self.w(u'<p>%s</p>' % ' - '.join('<a href="/_registry#%s">%s</a>' % (key, key) for key in keys))
   169         self.w(u'<p>%s</p>' % ' - '.join('<a href="/_registry#%s">%s</a>' % (key, key) for key in keys))
   170         for key in keys:
   170         for key in keys:
   171             self.w(u'<a name="%s"><h2>%s</h2></a><table>' % (key,key))
   171             self.w(u'<h2><a name="%s">%s</a></h2><table>' % (key,key))
   172             for key, value in sorted(self.vreg[key].items()):
   172             for key, value in sorted(self.vreg[key].items()):
   173                 self.w(u'<tr><td>%s</td><td>%s</td></tr>' % (key, xml_escape(repr(value))))
   173                 self.w(u'<tr><td>%s</td><td>%s</td></tr>' % (key, xml_escape(repr(value))))
   174             self.w(u'</table>')
   174             self.w(u'</table>')
   175 
   175