[doc] make example more redable 3.26
authorLaurent Peuch <cortex@worlddomination.be>
Tue, 26 Feb 2019 16:25:44 +0100
branch3.26
changeset 12473 4042795875b9
parent 12472 4ae2b13017ef
child 12474 614106260042
[doc] make example more redable
doc/tutorials/advanced/part04_ui-base.rst
--- 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)