equal
deleted
inserted
replaced
41 """display various web server /repository information""" |
41 """display various web server /repository information""" |
42 __regid__ = 'info' |
42 __regid__ = 'info' |
43 __select__ = none_rset() & match_user_groups('managers') |
43 __select__ = none_rset() & match_user_groups('managers') |
44 |
44 |
45 title = _('server information') |
45 title = _('server information') |
|
46 cache_max_age = 0 |
46 |
47 |
47 def call(self, **kwargs): |
48 def call(self, **kwargs): |
48 req = self._cw |
49 req = self._cw |
49 dtformat = req.property_value('ui.datetime-format') |
50 dtformat = req.property_value('ui.datetime-format') |
50 _ = req._ |
51 _ = req._ |
124 class RegistryView(StartupView): |
125 class RegistryView(StartupView): |
125 """display vregistry content""" |
126 """display vregistry content""" |
126 __regid__ = 'registry' |
127 __regid__ = 'registry' |
127 __select__ = StartupView.__select__ & match_user_groups('managers') |
128 __select__ = StartupView.__select__ & match_user_groups('managers') |
128 title = _('registry') |
129 title = _('registry') |
|
130 cache_max_age = 0 |
129 |
131 |
130 def call(self, **kwargs): |
132 def call(self, **kwargs): |
131 self.w(u'<h1>%s</h1>' % _("Registry's content")) |
133 self.w(u'<h1>%s</h1>' % _("Registry's content")) |
132 keys = sorted(self._cw.vreg) |
134 keys = sorted(self._cw.vreg) |
133 url = xml_escape(self._cw.url()) |
135 url = xml_escape(self._cw.url()) |
146 class GCView(StartupView): |
148 class GCView(StartupView): |
147 """display garbage collector information""" |
149 """display garbage collector information""" |
148 __regid__ = 'gc' |
150 __regid__ = 'gc' |
149 __select__ = StartupView.__select__ & match_user_groups('managers') |
151 __select__ = StartupView.__select__ & match_user_groups('managers') |
150 title = _('memory leak debugging') |
152 title = _('memory leak debugging') |
|
153 cache_max_age = 0 |
151 |
154 |
152 def call(self, **kwargs): |
155 def call(self, **kwargs): |
153 from cubicweb._gcdebug import gc_info |
156 from cubicweb._gcdebug import gc_info |
154 from rql.stmts import Union |
157 from rql.stmts import Union |
155 from cubicweb.appobject import AppObject |
158 from cubicweb.appobject import AppObject |