mixins.py
changeset 4395 e50b71c0dd87
parent 4383 e62a9efdd90a
child 4401 4d973c834eb3
equal deleted inserted replaced
4394:b98fbca17e9e 4395:e50b71c0dd87
    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():