diff -r f9336257e0b9 -r c3feb6a33f58 web/views/management.py --- a/web/views/management.py Mon Oct 19 17:53:53 2009 +0200 +++ b/web/views/management.py Mon Oct 19 18:15:24 2009 +0200 @@ -212,7 +212,7 @@ else: exclass = ex.__class__.__name__ ex = exc_message(ex, req.encoding) - if excinfo is not None and self._cw.config['print-traceback']: + if excinfo is not None and self._cw.vreg.config['print-traceback']: if exclass is None: w(u'
%s
' % xml_escape(ex).replace("\n","
")) @@ -226,19 +226,19 @@ # if excinfo is not None, it's probably not a bug if excinfo is None: return - vcconf = self._cw.config.vc_config() + vcconf = self._cw.vreg.config.vc_config() w(u"
") eversion = vcconf.get('cubicweb', self._cw._('no version information')) # NOTE: tuple wrapping needed since eversion is itself a tuple w(u"CubicWeb version: %s
\n" % (eversion,)) cversions = [] - for cube in self._cw.config.cubes(): + for cube in self._cw.vreg.config.cubes(): cubeversion = vcconf.get(cube, self._cw._('no version information')) w(u"Package %s version: %s
\n" % (cube, cubeversion)) cversions.append((cube, cubeversion)) w(u"
") # creates a bug submission link if submit-mail is set - if self._cw.config['submit-mail']: + if self._cw.vreg.config['submit-mail']: form = self._cw.vreg['forms'].select('base', self._cw, rset=None, mainform=False) binfo = text_error_description(ex, excinfo, req, eversion, cversions) @@ -281,7 +281,7 @@ def call(self, **kwargs): """display server information""" - vcconf = self._cw.config.vc_config() + vcconf = self._cw.vreg.config.vc_config() req = self._cw _ = req._ # display main information @@ -289,12 +289,12 @@ self.w(u'') self.w(u'' % ( 'CubicWeb', vcconf.get('cubicweb', _('no version information')))) - for pkg in self._cw.config.cubes(): + for pkg in self._cw.vreg.config.cubes(): pkgversion = vcconf.get(pkg, _('no version information')) self.w(u'' % ( pkg, pkgversion)) self.w(u'' % ( - _('home'), self._cw.config.apphome)) + _('home'), self._cw.vreg.config.apphome)) self.w(u'' % ( _('base url'), req.base_url())) self.w(u'' % (
%s%s
%s%s
%s%s
%s%s
%s%s