[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services - Configuration.py:1.3.2.3
Marius Gedminas
mgedmin@codeworks.lt
Wed, 11 Dec 2002 11:25:55 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Services
In directory cvs.zope.org:/tmp/cvs-serv12671/lib/python/Zope/App/OFS/Services
Modified Files:
Tag: named-component-configuration-branch
Configuration.py
Log Message:
Filter out empty registries from listConfigurationNames (end result is that
e.g. a ServiceManager will not show a service type if there are no
registered configurations for it.)
=== Zope3/lib/python/Zope/App/OFS/Services/Configuration.py 1.3.2.2 => 1.3.2.3 ===
--- Zope3/lib/python/Zope/App/OFS/Services/Configuration.py:1.3.2.2 Wed Dec 11 11:07:38 2002
+++ Zope3/lib/python/Zope/App/OFS/Services/Configuration.py Wed Dec 11 11:25:54 2002
@@ -399,5 +399,5 @@
createConfigurations = ContextMethod(createConfigurations)
def listConfigurationNames(self):
- return self._bindings.keys()
+ return filter(self._bindings.get, self._bindings.keys())