def set_ownership(self):
assert self.section is not None<EOL>for t in self.children:<EOL><INDENT>t.parent = self<EOL>t._section = self.section<EOL>t.doc = self.doc<EOL>t.set_ownership()<EOL><DEDENT>
Recursivelt set the parent, section and doc for a children