author | Laurent Peuch <cortex@worlddomination.be> |
Tue, 26 Feb 2019 16:25:44 +0100 | |
branch | 3.26 |
changeset 12473 | 4042795875b9 |
parent 12472 | 4ae2b13017ef |
child 12474 | 614106260042 |
--- a/doc/tutorials/advanced/part04_ui-base.rst Tue Feb 26 16:25:27 2019 +0100 +++ b/doc/tutorials/advanced/part04_ui-base.rst Tue Feb 26 16:25:44 2019 +0100 @@ -183,10 +183,13 @@ rql = self.entity.cw_related_rql(self.tree_relation, self.parent_role, ('File',)) rset = self._cw.execute(rql, {'x': self.entity.eid}) + if entities: return list(rset.entities()) + return rset + def registration_callback(vreg): vreg.register_and_replace(FolderITreeAdapter, folder.FolderITreeAdapter)