[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/configuration - __init__.py:1.5 useconfiguration.pt:1.3
Guido van Rossum
guido@python.org
Mon, 28 Apr 2003 11:54:42 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser/services/configuration
In directory cvs.zope.org:/tmp/cvs-serv14966/configuration
Modified Files:
__init__.py useconfiguration.pt
Log Message:
Use a single generic ZMI tab labeled "Registrations" instead of
separate ones per object type; also rename it to "registrations.html".
=== Zope3/src/zope/app/browser/services/configuration/__init__.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/browser/services/configuration/__init__.py:1.4 Thu Apr 24 14:02:02 2003
+++ Zope3/src/zope/app/browser/services/configuration/__init__.py Mon Apr 28 11:54:11 2003
@@ -90,6 +90,13 @@
for path in useconfig.usages():
config = traverse(component, path)
url = getView(config, 'absolute_url', self.request)
+ # XXX This assumes the configuration implements
+ # INamedComponentConfiguration rather than just
+ # IComponentConfiguration. ATM there are no
+ # counterexamples, so this is a sleeper bug;
+ # but what to do? Could move the configuration
+ # management up to INamedComponentConfiguration,
+ # or could use path as default for name here.
result.append({'name': config.name,
'path': path,
'url': url(),
=== Zope3/src/zope/app/browser/services/configuration/useconfiguration.pt 1.2 => 1.3 ===
--- Zope3/src/zope/app/browser/services/configuration/useconfiguration.pt:1.2 Wed Apr 23 17:04:08 2003
+++ Zope3/src/zope/app/browser/services/configuration/useconfiguration.pt Mon Apr 28 11:54:11 2003
@@ -2,7 +2,7 @@
<body>
<div metal:fill-slot="body">
- <p>Configurations for this service:</p>
+ <p>Registrations for this object:</p>
<ul>
@@ -11,13 +11,13 @@
<a href="http://."
tal:attributes="href use/url"
tal:content="use/name">
- Example Service
+ Example Object
</a> (<span tal:replace="use/status">Active</span>)
</li>
</ul>
- <p><a href="addConfiguration.html">Add a configuration for this service</a>
+ <p><a href="addConfiguration.html">Add a registration for this object</a>
</div>
</body>