do not override __iter__ on entities stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 12 Oct 2009 12:19:58 +0200
branchstable
changeset 3635 a56759c3c99f
parent 3634 a2d00ff6eb68
child 3636 9b16e7b6ba35
do not override __iter__ on entities
interfaces.py
--- a/interfaces.py	Fri Oct 09 19:21:06 2009 +0200
+++ b/interfaces.py	Mon Oct 12 12:19:58 2009 +0200
@@ -127,7 +127,7 @@
     def children_rql(self):
         """XXX returns RQL to get children"""
 
-    def __iter__(self):
+    def iterchildren(self):
         """iterates over the item's children"""
 
     def is_leaf(self):