[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services - useconfiguration.pt:1.1.2.3 useconfiguration.py:1.1.2.2
Guido van Rossum
guido@python.org
Mon, 3 Mar 2003 15:05:21 -0500
Update of /cvs-repository/Zope3/src/zope/app/browser/services
In directory cvs.zope.org:/tmp/cvs-serv15714
Modified Files:
Tag: use-config-branch
useconfiguration.pt useconfiguration.py
Log Message:
Make the display a little prettier: show the service name instead of
the path, and show the status (Active, etc.)
=== Zope3/src/zope/app/browser/services/useconfiguration.pt 1.1.2.2 => 1.1.2.3 ===
--- Zope3/src/zope/app/browser/services/useconfiguration.pt:1.1.2.2 Mon Mar 3 14:18:25 2003
+++ Zope3/src/zope/app/browser/services/useconfiguration.pt Mon Mar 3 15:05:21 2003
@@ -12,7 +12,7 @@
tal:attributes="href use/url"
tal:content="use/name">
Example Service
- </a>
+ </a> (<span tal:replace="use/status">Active</span>)
</li>
</ul>
=== Zope3/src/zope/app/browser/services/useconfiguration.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/browser/services/useconfiguration.py:1.1.2.1 Mon Feb 24 18:36:55 2003
+++ Zope3/src/zope/app/browser/services/useconfiguration.py Mon Mar 3 15:05:21 2003
@@ -32,5 +32,9 @@
for path in useconfig.usages():
config = traverse(component, path)
url = getView(config, 'absolute_url', self.request)
- result.append({'name': path, 'url': url()})
+ result.append({'name': config.name,
+ 'path': path,
+ 'url': url(),
+ 'status': config.status,
+ })
return result