# HG changeset patch # User Sylvain Thénault # Date 1249888423 -7200 # Node ID 5b0993df7c8ad296e5ff749c00e66b3503d74a8b # Parent d0cd7f7c6d21f8ae644351cc7166865e48d3548c# Parent d2fcf19bfb348171554e5bbcc18275dcd609584a merge diff -r d0cd7f7c6d21 -r 5b0993df7c8a common/mixins.py --- a/common/mixins.py Mon Aug 10 09:12:22 2009 +0200 +++ b/common/mixins.py Mon Aug 10 09:13:43 2009 +0200 @@ -365,6 +365,7 @@ class ProgressMixIn(object): """provide default implementations for IProgress interface methods""" + # This is an adapter isn't it ? @property def cost(self): diff -r d0cd7f7c6d21 -r 5b0993df7c8a web/views/startup.py --- a/web/views/startup.py Mon Aug 10 09:12:22 2009 +0200 +++ b/web/views/startup.py Mon Aug 10 09:13:43 2009 +0200 @@ -156,3 +156,19 @@ def display_folders(self): return 'Folder' in self.schema and self.req.execute('Any COUNT(X) WHERE X is Folder')[0][0] + +class RegistryView(StartupView): + id = 'registry' + title = _('registry') + + def call(self, **kwargs): + """The default view representing the instance's management""" + self.w(u'

%s

' % _("Registry's content")) + keys = sorted(self.vreg) + self.w(u'

%s

' % ' - '.join('%s' % (key, key) for key in keys)) + for key in keys: + self.w(u'

%s

' % (key,key)) + for key, value in sorted(self.vreg[key].items()): + self.w(u'' % (key, xml_escape(repr(value)))) + self.w(u'
%s%s
') + diff -r d0cd7f7c6d21 -r 5b0993df7c8a web/views/urlrewrite.py --- a/web/views/urlrewrite.py Mon Aug 10 09:12:22 2009 +0200 +++ b/web/views/urlrewrite.py Mon Aug 10 09:13:43 2009 +0200 @@ -70,6 +70,9 @@ id = 'simple' rules = [ + ('/_', dict(vid='manage')), + ('/_registry', dict(vid='registry')), +# (rgx('/_([^/]+?)/?'), dict(vid=r'\1')), ('/schema', dict(vid='schema')), ('/index', dict(vid='index')), ('/myprefs', dict(vid='propertiesform')),