[Zope3-checkins] CVS: Zope3/src/zope/app/services - configurationmanager.py:1.3

Jim Fulton jim@zope.com
Mon, 3 Feb 2003 09:53:42 -0500


Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv13904

Modified Files:
	configurationmanager.py 
Log Message:
Added __iter__ method.


=== Zope3/src/zope/app/services/configurationmanager.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/services/configurationmanager.py:1.2	Wed Dec 25 09:13:19 2002
+++ Zope3/src/zope/app/services/configurationmanager.py	Mon Feb  3 09:53:38 2003
@@ -18,7 +18,8 @@
 __metaclass__ = type
 
 from persistence import Persistent
-from zope.app.interfaces.services.configurationmanager import IConfigurationManager
+from zope.app.interfaces.services.configurationmanager \
+     import IConfigurationManager
 from zope.app.interfaces.container import IDeleteNotifiable
 from zope.app.interfaces.container import IZopeWriteContainer
 from zope.component import getAdapter
@@ -58,6 +59,9 @@
     def keys(self):
         "See Interface.Common.Mapping.IEnumerableMapping"
         return [k for k, v in self._data]
+
+    def __iter__(self):
+        return iter(self.keys())
 
     def values(self):
         "See Interface.Common.Mapping.IEnumerableMapping"