[entity] must not define __iter__ or other method from the dict protocal since entities are inheriting from dict (and expecting such behaviour) stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 07 Oct 2009 11:32:54 +0200
branchstable
changeset 3583 385d013c7adb
parent 3578 7f026d15cc82
child 3584 585c4423a54c
[entity] must not define __iter__ or other method from the dict protocal since entities are inheriting from dict (and expecting such behaviour)
common/mixins.py
--- a/common/mixins.py	Tue Oct 06 18:17:11 2009 +0200
+++ b/common/mixins.py	Wed Oct 07 11:32:54 2009 +0200
@@ -144,9 +144,6 @@
     def children_rql(self):
         return self.related_rql(self.tree_attribute, self.children_target)
 
-    def __iter__(self):
-        return self.iterchildren()
-
     def is_leaf(self):
         return len(self.children()) == 0