You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-commits@quetz.apache.org by gr...@apache.org on 2006/10/29 08:46:25 UTC

svn commit: r468842 - /httpd/mod_python/trunk/lib/python/mod_python/util.py

Author: grahamd
Date: Sun Oct 29 00:46:25 2006
New Revision: 468842

URL: http://svn.apache.org/viewvc?view=rev&rev=468842
Log:
(MODPYTHON-93) Missing __iter__() method to support 'for k in form'.


Modified:
    httpd/mod_python/trunk/lib/python/mod_python/util.py

Modified: httpd/mod_python/trunk/lib/python/mod_python/util.py
URL: http://svn.apache.org/viewvc/httpd/mod_python/trunk/lib/python/mod_python/util.py?view=diff&rev=468842&r1=468841&r2=468842
==============================================================================
--- httpd/mod_python/trunk/lib/python/mod_python/util.py (original)
+++ httpd/mod_python/trunk/lib/python/mod_python/util.py Sun Oct 29 00:46:25 2006
@@ -416,6 +416,9 @@
         """Dictionary style keys() method."""
         return self.list.table().keys()
 
+    def __iter__(self):
+        return iter(self.keys())
+
     def has_key(self, key):
         """Dictionary style has_key() method."""
         return (key in self.list.table())