equal
deleted
inserted
replaced
48 """ |
48 """ |
49 res = self.related(self.tree_attribute, self.children_target, |
49 res = self.related(self.tree_attribute, self.children_target, |
50 entities=entities) |
50 entities=entities) |
51 if entities: |
51 if entities: |
52 return [e for e in res if e.e_schema == self.e_schema] |
52 return [e for e in res if e.e_schema == self.e_schema] |
53 return res.filtered_rset(lambda x: x.e_schema == self.e_schema, self.cw_col) |
53 return res.filtered_rset(lambda x: x.e_schema is self.e_schema, self.cw_col) |
54 |
54 |
55 def iterchildren(self, _done=None): |
55 def iterchildren(self, _done=None): |
56 if _done is None: |
56 if _done is None: |
57 _done = set() |
57 _done = set() |
58 for child in self.children(): |
58 for child in self.children(): |