[Zope3-checkins] CVS: Zope3/src/zope/app/container - zopecontainer.py:1.6

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


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

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


=== Zope3/src/zope/app/container/zopecontainer.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/container/zopecontainer.py:1.5	Sun Jan 19 10:09:31 2003
+++ Zope3/src/zope/app/container/zopecontainer.py	Mon Feb  3 09:58:16 2003
@@ -69,6 +69,10 @@
         '''See interface IReadContainer'''
         return self.context.keys()
 
+    def __iter__(self):
+        '''See interface IReadContainer'''
+        return iter(self.context)
+
     def __len__(self):
         '''See interface IReadContainer'''
         return len(self.context)